Closed (fixed)
Project:
APNs PHP
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
1 Jul 2026 at 12:46 UTC
Updated:
15 Jul 2026 at 13:05 UTC
Jump to comment: Most recent
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
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
Comment #4
ptmkenny commented