Problem/Motivation

1) web/modules/orig/apns_php/tests/src/Unit/Service/ApnsPhpMessagingApiTest.php:43

    ---------- begin diff ----------
@@ Line 43 @@
     bool $log_token_validation_result = FALSE,
     string $notification_url_key = 'url',
   ): ApnsPhpMessagingApi {
-    $api = (new \ReflectionClass(ApnsPhpMessagingApi::class))
+    $api = new \ReflectionClass(ApnsPhpMessagingApi::class)
       ->newInstanceWithoutConstructor();
     $this->setPrivateProperty($api, 'client', $client);
     $this->setPrivateProperty($api, 'loggingLevel', $level);
@@ Line 71 @@
    * Sets a non-public property declared on the subject or its parent.
    */
   private function setPrivateProperty(object $object, string $property, mixed $value): void {
-    (new \ReflectionProperty($object, $property))->setValue($object, $value);
+    new \ReflectionProperty($object, $property)->setValue($object, $value);
   }

   /**
    ----------- end diff -----------

Applied rules:
 * NewMethodCallWithoutParenthesesRector

Issue fork apns_php-3607658

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ptmkenny created an issue. See original summary.

  • ptmkenny committed cfbdc464 on 1.0.x
    task: #3607658 Rector fixes July 2026
    
    By: ptmkenny
    
ptmkenny’s picture

Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.