From a8762acd01d35f201f9e9dfc4420f650053b5bb2 Mon Sep 17 00:00:00 2001 From: Petr Buchyn Date: Mon, 12 Apr 2021 23:46:34 +0300 Subject: [PATCH 01/19] Support for non-nullable typed properties when using AccessInterceptorScopeLocalizer proxy --- .../MethodGenerator/BindProxyProperties.php | 42 +-- .../MethodGenerator/BindProxyProperty.php | 65 ++++ ...cessInterceptorScopeLocalizerGenerator.php | 2 + ...nterceptorScopeLocalizerFunctionalTest.php | 25 +- .../BindProxyPropertiesTest.php | 286 ++++++------------ .../AccessInterceptorScopeLocalizerTest.php | 4 - .../ClassWithNonNullableTypedProperties.php | 29 ++ 7 files changed, 221 insertions(+), 232 deletions(-) create mode 100644 src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperty.php create mode 100644 tests/ProxyManagerTestAsset/ClassWithNonNullableTypedProperties.php diff --git a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperties.php b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperties.php index b307e56e4..a39aaaf45 100644 --- a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperties.php +++ b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperties.php @@ -6,13 +6,14 @@ use Laminas\Code\Generator\ParameterGenerator; use Laminas\Code\Generator\PropertyGenerator; -use ProxyManager\Exception\UnsupportedProxiedClassException; use ProxyManager\Generator\MethodGenerator; use ProxyManager\ProxyGenerator\Util\Properties; use ReflectionClass; use function implode; -use function var_export; +use function sprintf; + +use const PHP_EOL; /** * The `bindProxyProperties` method implementation for access interceptor scope localizers @@ -42,38 +43,19 @@ public function __construct( . '@param \\Closure[] $suffixInterceptors method interceptors to be used before method logic' ); - $localizedProperties = []; - $properties = Properties::fromReflectionClass($originalClass); - $nonReferenceableProperties = $properties - ->onlyNonReferenceableProperties() - ->onlyInstanceProperties(); + $properties = Properties::fromReflectionClass($originalClass); - if (! $nonReferenceableProperties->empty()) { - throw UnsupportedProxiedClassException::nonReferenceableLocalizedReflectionProperties( - $originalClass, - $nonReferenceableProperties + $bodyLines = ['$class = new \ReflectionObject($localizedObject);']; + foreach ($properties->getInstanceProperties() as $property) { + $bodyLines[] = sprintf( + '$this->bindProxyProperty($localizedObject, $class, \'%s\');', + $property->getName() ); } - foreach ($properties->getAccessibleProperties() as $property) { - $propertyName = $property->getName(); - - $localizedProperties[] = '$this->' . $propertyName . ' = & $localizedObject->' . $propertyName . ';'; - } - - foreach ($properties->getPrivateProperties() as $property) { - $propertyName = $property->getName(); + $bodyLines[] = sprintf('$this->%s = $prefixInterceptors;', $prefixInterceptors->getName()); + $bodyLines[] = sprintf('$this->%s = $suffixInterceptors;', $suffixInterceptors->getName()); - $localizedProperties[] = "\\Closure::bind(function () use (\$localizedObject) {\n " - . '$this->' . $propertyName . ' = & $localizedObject->' . $propertyName . ";\n" - . '}, $this, ' . var_export($property->getDeclaringClass()->getName(), true) - . ')->__invoke();'; - } - - $this->setBody( - ($localizedProperties ? implode("\n\n", $localizedProperties) . "\n\n" : '') - . '$this->' . $prefixInterceptors->getName() . " = \$prefixInterceptors;\n" - . '$this->' . $suffixInterceptors->getName() . ' = $suffixInterceptors;' - ); + $this->setBody(implode(PHP_EOL, $bodyLines)); } } diff --git a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperty.php b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperty.php new file mode 100644 index 000000000..11480fe03 --- /dev/null +++ b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperty.php @@ -0,0 +1,65 @@ +getName()), + new ParameterGenerator('class', ReflectionClass::class), + new ParameterGenerator('propertyName', 'string'), + ], + self::FLAG_PRIVATE + ); + + $bodyTemplate = <<<'CODE' + $originalClass = $class; + while (! $class->hasProperty($propertyName)) { + $class = $class->getParentClass(); + } + $property = $class->getProperty($propertyName); + $property->setAccessible(true); + if (!$property->isInitialized($localizedObject)) { + throw new \{ EXCEPTION_CLASS }( + sprintf( + 'Cannot create reference for property $%s of class %s: property must be initialized', + $property->getName(), + $originalClass->getName() + ) + ); + } + if (!$property->isPrivate()) { + $this->{$propertyName} = & $localizedObject->{$propertyName}; + return; + } + + \Closure::bind( + function () use ($localizedObject, $propertyName) { + $this->{$propertyName} = & $localizedObject->{$propertyName}; + }, + $this, + $property->getDeclaringClass()->getName() + )->__invoke(); + CODE; + + $this->setBody( + strtr( + $bodyTemplate, + ['{ EXCEPTION_CLASS }' => UnsupportedProxiedClassException::class] + ) + ); + } +} diff --git a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizerGenerator.php b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizerGenerator.php index b2bbc33a2..0d34e44c2 100644 --- a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizerGenerator.php +++ b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizerGenerator.php @@ -16,6 +16,7 @@ use ProxyManager\ProxyGenerator\AccessInterceptor\PropertyGenerator\MethodPrefixInterceptors; use ProxyManager\ProxyGenerator\AccessInterceptor\PropertyGenerator\MethodSuffixInterceptors; use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\BindProxyProperties; +use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\BindProxyProperty; use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\InterceptedMethod; use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\MagicClone; use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\MagicGet; @@ -71,6 +72,7 @@ static function (MethodGenerator $generatedMethod) use ($originalClass, $classGe ), [ new StaticProxyConstructor($originalClass), + new BindProxyProperty($originalClass), new BindProxyProperties($originalClass, $prefixInterceptors, $suffixInterceptors), new SetMethodPrefixInterceptor($prefixInterceptors), new SetMethodSuffixInterceptor($suffixInterceptors), diff --git a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php index 49236b3c3..d88d84217 100644 --- a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php +++ b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php @@ -18,6 +18,7 @@ use ProxyManagerTestAsset\ClassWithDynamicArgumentsMethod; use ProxyManagerTestAsset\ClassWithMethodWithByRefVariadicFunction; use ProxyManagerTestAsset\ClassWithMethodWithVariadicFunction; +use ProxyManagerTestAsset\ClassWithNonNullableTypedProperties; use ProxyManagerTestAsset\ClassWithParentHint; use ProxyManagerTestAsset\ClassWithPublicArrayPropertyAccessibleViaMethod; use ProxyManagerTestAsset\ClassWithPublicProperties; @@ -26,6 +27,7 @@ use ProxyManagerTestAsset\EmptyClass; use ProxyManagerTestAsset\VoidCounter; use ReflectionClass; +use ReflectionObject; use stdClass; use function array_values; @@ -247,6 +249,12 @@ public function testPropertyExistence(object $instance, AccessInterceptorInterfa self::assertSame(isset($instance->$publicProperty), isset($proxy->$publicProperty)); $this->assertProxySynchronized($instance, $proxy); + $class = new ReflectionObject($instance); + $property = $class->getProperty($publicProperty); + if ($property->getType() && ! $property->getType()->allowsNull()) { + return; + } + $instance->$publicProperty = null; self::assertFalse(isset($proxy->$publicProperty)); $this->assertProxySynchronized($instance, $proxy); @@ -406,15 +414,26 @@ public static function getProxyMethods(): array */ public function getPropertyAccessProxies(): array { - $instance = new BaseClass(); + $baseClassInstance = new BaseClass(); + $classWithNonNullablePropertiesInstance = new ClassWithNonNullableTypedProperties( + 'privatePropertyValue', + 'protectedPropertyValue', + 'publicPropertyValue' + ); return [ [ - $instance, - (new AccessInterceptorScopeLocalizerFactory())->createProxy($instance), + $baseClassInstance, + (new AccessInterceptorScopeLocalizerFactory())->createProxy($baseClassInstance), 'publicProperty', 'publicPropertyDefault', ], + [ + $classWithNonNullablePropertiesInstance, + (new AccessInterceptorScopeLocalizerFactory())->createProxy($classWithNonNullablePropertiesInstance), + 'publicProperty', + 'publicPropertyValue', + ], ]; } diff --git a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php index 4623a8662..46624d055 100644 --- a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php +++ b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php @@ -68,31 +68,19 @@ public function testBodyStructure(): void $this->suffixInterceptors ); - $expectedCode = <<<'PHP' -$this->publicProperty0 = & $localizedObject->publicProperty0; - -$this->publicProperty1 = & $localizedObject->publicProperty1; - -$this->publicProperty2 = & $localizedObject->publicProperty2; - -$this->protectedProperty0 = & $localizedObject->protectedProperty0; - -$this->protectedProperty1 = & $localizedObject->protectedProperty1; - -$this->protectedProperty2 = & $localizedObject->protectedProperty2; - -\Closure::bind(function () use ($localizedObject) { - $this->privateProperty0 = & $localizedObject->privateProperty0; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateProperty1 = & $localizedObject->privateProperty1; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateProperty2 = & $localizedObject->privateProperty2; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedProperties')->__invoke(); + $expectedCode = + $expectedCode = <<<'PHP' +$class = new \ReflectionObject($localizedObject); +$this->bindProxyProperty($localizedObject, $class, 'publicProperty0'); +$this->bindProxyProperty($localizedObject, $class, 'publicProperty1'); +$this->bindProxyProperty($localizedObject, $class, 'publicProperty2'); +$this->bindProxyProperty($localizedObject, $class, 'protectedProperty0'); +$this->bindProxyProperty($localizedObject, $class, 'protectedProperty1'); +$this->bindProxyProperty($localizedObject, $class, 'protectedProperty2'); +$this->bindProxyProperty($localizedObject, $class, 'privateProperty0'); +$this->bindProxyProperty($localizedObject, $class, 'privateProperty1'); +$this->bindProxyProperty($localizedObject, $class, 'privateProperty2'); $this->pre = $prefixInterceptors; $this->post = $suffixInterceptors; PHP; @@ -108,29 +96,24 @@ public function testBodyStructureWithProtectedProperties(): void $this->suffixInterceptors ); - self::assertSame( - '$this->property0 = & $localizedObject->property0; - -$this->property1 = & $localizedObject->property1; - -$this->property2 = & $localizedObject->property2; - -$this->property3 = & $localizedObject->property3; - -$this->property4 = & $localizedObject->property4; - -$this->property5 = & $localizedObject->property5; - -$this->property6 = & $localizedObject->property6; - -$this->property7 = & $localizedObject->property7; - -$this->property8 = & $localizedObject->property8; - -$this->property9 = & $localizedObject->property9; - + $expectedCode = <<<'PHP' +$class = new \ReflectionObject($localizedObject); +$this->bindProxyProperty($localizedObject, $class, 'property0'); +$this->bindProxyProperty($localizedObject, $class, 'property1'); +$this->bindProxyProperty($localizedObject, $class, 'property2'); +$this->bindProxyProperty($localizedObject, $class, 'property3'); +$this->bindProxyProperty($localizedObject, $class, 'property4'); +$this->bindProxyProperty($localizedObject, $class, 'property5'); +$this->bindProxyProperty($localizedObject, $class, 'property6'); +$this->bindProxyProperty($localizedObject, $class, 'property7'); +$this->bindProxyProperty($localizedObject, $class, 'property8'); +$this->bindProxyProperty($localizedObject, $class, 'property9'); $this->pre = $prefixInterceptors; -$this->post = $suffixInterceptors;', +$this->post = $suffixInterceptors; +PHP; + + self::assertSame( + $expectedCode, $method->getBody() ); } @@ -143,49 +126,25 @@ public function testBodyStructureWithPrivateProperties(): void $this->suffixInterceptors ); - self::assertSame( - '\Closure::bind(function () use ($localizedObject) { - $this->property0 = & $localizedObject->property0; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->property1 = & $localizedObject->property1; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->property2 = & $localizedObject->property2; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->property3 = & $localizedObject->property3; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->property4 = & $localizedObject->property4; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->property5 = & $localizedObject->property5; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->property6 = & $localizedObject->property6; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->property7 = & $localizedObject->property7; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->property8 = & $localizedObject->property8; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); + $expectedCode = <<<'PHP' +$class = new \ReflectionObject($localizedObject); +$this->bindProxyProperty($localizedObject, $class, 'property0'); +$this->bindProxyProperty($localizedObject, $class, 'property1'); +$this->bindProxyProperty($localizedObject, $class, 'property2'); +$this->bindProxyProperty($localizedObject, $class, 'property3'); +$this->bindProxyProperty($localizedObject, $class, 'property4'); +$this->bindProxyProperty($localizedObject, $class, 'property5'); +$this->bindProxyProperty($localizedObject, $class, 'property6'); +$this->bindProxyProperty($localizedObject, $class, 'property7'); +$this->bindProxyProperty($localizedObject, $class, 'property8'); +$this->bindProxyProperty($localizedObject, $class, 'property9'); +$this->pre = $prefixInterceptors; +$this->post = $suffixInterceptors; +PHP; -\Closure::bind(function () use ($localizedObject) { - $this->property9 = & $localizedObject->property9; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); -$this->pre = $prefixInterceptors; -$this->post = $suffixInterceptors;', + self::assertSame( + $expectedCode, $method->getBody() ); } @@ -198,116 +157,53 @@ public function testBodyStructureWithTypedProperties(): void $this->suffixInterceptors ); - self::assertSame( - <<<'PHP' -$this->publicUnTypedProperty = & $localizedObject->publicUnTypedProperty; - -$this->publicBoolProperty = & $localizedObject->publicBoolProperty; - -$this->publicNullableBoolProperty = & $localizedObject->publicNullableBoolProperty; - -$this->publicIntProperty = & $localizedObject->publicIntProperty; - -$this->publicNullableIntProperty = & $localizedObject->publicNullableIntProperty; - -$this->publicFloatProperty = & $localizedObject->publicFloatProperty; - -$this->publicNullableFloatProperty = & $localizedObject->publicNullableFloatProperty; - -$this->publicStringProperty = & $localizedObject->publicStringProperty; - -$this->publicNullableStringProperty = & $localizedObject->publicNullableStringProperty; - -$this->publicArrayProperty = & $localizedObject->publicArrayProperty; - -$this->publicNullableArrayProperty = & $localizedObject->publicNullableArrayProperty; - -$this->publicIterableProperty = & $localizedObject->publicIterableProperty; - -$this->publicNullableIterableProperty = & $localizedObject->publicNullableIterableProperty; - -$this->protectedUnTypedProperty = & $localizedObject->protectedUnTypedProperty; - -$this->protectedBoolProperty = & $localizedObject->protectedBoolProperty; - -$this->protectedNullableBoolProperty = & $localizedObject->protectedNullableBoolProperty; - -$this->protectedIntProperty = & $localizedObject->protectedIntProperty; - -$this->protectedNullableIntProperty = & $localizedObject->protectedNullableIntProperty; - -$this->protectedFloatProperty = & $localizedObject->protectedFloatProperty; - -$this->protectedNullableFloatProperty = & $localizedObject->protectedNullableFloatProperty; - -$this->protectedStringProperty = & $localizedObject->protectedStringProperty; - -$this->protectedNullableStringProperty = & $localizedObject->protectedNullableStringProperty; - -$this->protectedArrayProperty = & $localizedObject->protectedArrayProperty; - -$this->protectedNullableArrayProperty = & $localizedObject->protectedNullableArrayProperty; - -$this->protectedIterableProperty = & $localizedObject->protectedIterableProperty; - -$this->protectedNullableIterableProperty = & $localizedObject->protectedNullableIterableProperty; - -\Closure::bind(function () use ($localizedObject) { - $this->privateUnTypedProperty = & $localizedObject->privateUnTypedProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateBoolProperty = & $localizedObject->privateBoolProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateNullableBoolProperty = & $localizedObject->privateNullableBoolProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateIntProperty = & $localizedObject->privateIntProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateNullableIntProperty = & $localizedObject->privateNullableIntProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateFloatProperty = & $localizedObject->privateFloatProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateNullableFloatProperty = & $localizedObject->privateNullableFloatProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateStringProperty = & $localizedObject->privateStringProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateNullableStringProperty = & $localizedObject->privateNullableStringProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateArrayProperty = & $localizedObject->privateArrayProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateNullableArrayProperty = & $localizedObject->privateNullableArrayProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateIterableProperty = & $localizedObject->privateIterableProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateNullableIterableProperty = & $localizedObject->privateNullableIterableProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - + $expectedCode = <<<'PHP' +$class = new \ReflectionObject($localizedObject); +$this->bindProxyProperty($localizedObject, $class, 'publicUnTypedProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicBoolProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicNullableBoolProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicIntProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicNullableIntProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicFloatProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicNullableFloatProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicStringProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicNullableStringProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicArrayProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicNullableArrayProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicIterableProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicNullableIterableProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedUnTypedProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedBoolProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedNullableBoolProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedIntProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedNullableIntProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedFloatProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedNullableFloatProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedStringProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedNullableStringProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedArrayProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedNullableArrayProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedIterableProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedNullableIterableProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateUnTypedProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateBoolProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateNullableBoolProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateIntProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateNullableIntProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateFloatProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateNullableFloatProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateStringProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateNullableStringProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateArrayProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateNullableArrayProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateIterableProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateNullableIterableProperty'); $this->pre = $prefixInterceptors; $this->post = $suffixInterceptors; -PHP - , +PHP; + + self::assertSame( + $expectedCode, $method->getBody() ); } diff --git a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizerTest.php b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizerTest.php index c0487b374..519cd9a7e 100644 --- a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizerTest.php +++ b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizerTest.php @@ -36,10 +36,6 @@ public function testGeneratesValidCode(string $className): void $this->expectException(InvalidProxiedClassException::class); } - if ($reflectionClass->getName() === ClassWithMixedTypedProperties::class) { - $this->expectException(UnsupportedProxiedClassException::class); - } - parent::testGeneratesValidCode($className); } diff --git a/tests/ProxyManagerTestAsset/ClassWithNonNullableTypedProperties.php b/tests/ProxyManagerTestAsset/ClassWithNonNullableTypedProperties.php new file mode 100644 index 000000000..bd51753aa --- /dev/null +++ b/tests/ProxyManagerTestAsset/ClassWithNonNullableTypedProperties.php @@ -0,0 +1,29 @@ +privateProperty = $privateProperty; + $this->protectedProperty = $protectedProperty; + $this->publicProperty = $publicProperty; + } + + public function getPrivateProperty(): string + { + return $this->privateProperty; + } + + public function getProtectedProperty(): string + { + return $this->protectedProperty; + } +} From eb58579065519a9e06d115645b3b93abe689409c Mon Sep 17 00:00:00 2001 From: Petr Buchyn Date: Tue, 13 Apr 2021 00:04:16 +0300 Subject: [PATCH 02/19] CS fix --- .../MethodGenerator/BindProxyPropertiesTest.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php index 46624d055..6ca18d8a6 100644 --- a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php +++ b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php @@ -68,8 +68,6 @@ public function testBodyStructure(): void $this->suffixInterceptors ); - $expectedCode = - $expectedCode = <<<'PHP' $class = new \ReflectionObject($localizedObject); $this->bindProxyProperty($localizedObject, $class, 'publicProperty0'); @@ -142,7 +140,6 @@ public function testBodyStructureWithPrivateProperties(): void $this->post = $suffixInterceptors; PHP; - self::assertSame( $expectedCode, $method->getBody() From 2c1fd629762f4412ef741775b137c7afb48989f0 Mon Sep 17 00:00:00 2001 From: Petr Buchyn Date: Tue, 13 Apr 2021 00:08:37 +0300 Subject: [PATCH 03/19] Fix code due to Psalm error --- .../AccessInterceptorScopeLocalizerFunctionalTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php index d88d84217..d5da61905 100644 --- a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php +++ b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php @@ -28,6 +28,7 @@ use ProxyManagerTestAsset\VoidCounter; use ReflectionClass; use ReflectionObject; +use ReflectionType; use stdClass; use function array_values; @@ -251,7 +252,8 @@ public function testPropertyExistence(object $instance, AccessInterceptorInterfa $class = new ReflectionObject($instance); $property = $class->getProperty($publicProperty); - if ($property->getType() && ! $property->getType()->allowsNull()) { + $propertyType = $property->getType(); + if ($propertyType instanceof ReflectionType && ! $propertyType->allowsNull()) { return; } From 2289807a7e3843419616d7726894b60fa2739720 Mon Sep 17 00:00:00 2001 From: Petr Buchyn Date: Tue, 13 Apr 2021 00:19:45 +0300 Subject: [PATCH 04/19] CS fix --- .../AccessInterceptorScopeLocalizerFunctionalTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php index d5da61905..6c9e8e9d5 100644 --- a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php +++ b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php @@ -250,8 +250,8 @@ public function testPropertyExistence(object $instance, AccessInterceptorInterfa self::assertSame(isset($instance->$publicProperty), isset($proxy->$publicProperty)); $this->assertProxySynchronized($instance, $proxy); - $class = new ReflectionObject($instance); - $property = $class->getProperty($publicProperty); + $class = new ReflectionObject($instance); + $property = $class->getProperty($publicProperty); $propertyType = $property->getType(); if ($propertyType instanceof ReflectionType && ! $propertyType->allowsNull()) { return; From bd486fbe2be38648f4cc5b3766bdf959c35ebade Mon Sep 17 00:00:00 2001 From: Petr Buchyn Date: Tue, 13 Apr 2021 00:31:51 +0300 Subject: [PATCH 05/19] Add ClassWithNonNullableTypedProperties for method tests --- ...nterceptorScopeLocalizerFunctionalTest.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php index 6c9e8e9d5..8ca5c953b 100644 --- a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php +++ b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php @@ -406,6 +406,26 @@ public static function getProxyMethods(): array ['parameter' => $empty], $empty, ], + [ + new ClassWithNonNullableTypedProperties( + 'privatePropertyValue', + 'protectedPropertyValue', + 'prublicPropertyValue' + ), + 'getPrivateProperty', + [], + 'privatePropertyValue', + ], + [ + new ClassWithNonNullableTypedProperties( + 'privatePropertyValue', + 'protectedPropertyValue', + 'prublicPropertyValue' + ), + 'getProtectedProperty', + [], + 'protectedPropertyValue', + ], ]; } From 7f814ecfe132abf0ad38536f84956ae8ba1040fb Mon Sep 17 00:00:00 2001 From: Petr Buchyn Date: Tue, 13 Apr 2021 23:43:58 +0300 Subject: [PATCH 06/19] Fixes due to PR review --- .../MethodGenerator/BindProxyProperty.php | 65 ------------------- 1 file changed, 65 deletions(-) delete mode 100644 src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperty.php diff --git a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperty.php b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperty.php deleted file mode 100644 index 11480fe03..000000000 --- a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperty.php +++ /dev/null @@ -1,65 +0,0 @@ -getName()), - new ParameterGenerator('class', ReflectionClass::class), - new ParameterGenerator('propertyName', 'string'), - ], - self::FLAG_PRIVATE - ); - - $bodyTemplate = <<<'CODE' - $originalClass = $class; - while (! $class->hasProperty($propertyName)) { - $class = $class->getParentClass(); - } - $property = $class->getProperty($propertyName); - $property->setAccessible(true); - if (!$property->isInitialized($localizedObject)) { - throw new \{ EXCEPTION_CLASS }( - sprintf( - 'Cannot create reference for property $%s of class %s: property must be initialized', - $property->getName(), - $originalClass->getName() - ) - ); - } - if (!$property->isPrivate()) { - $this->{$propertyName} = & $localizedObject->{$propertyName}; - return; - } - - \Closure::bind( - function () use ($localizedObject, $propertyName) { - $this->{$propertyName} = & $localizedObject->{$propertyName}; - }, - $this, - $property->getDeclaringClass()->getName() - )->__invoke(); - CODE; - - $this->setBody( - strtr( - $bodyTemplate, - ['{ EXCEPTION_CLASS }' => UnsupportedProxiedClassException::class] - ) - ); - } -} From 9601a2ba6b9328f6c64a4037b35521311e594bf2 Mon Sep 17 00:00:00 2001 From: Petr Buchyn Date: Tue, 13 Apr 2021 23:44:48 +0300 Subject: [PATCH 07/19] Fixes due to PR review --- .../MethodGenerator/BindProxyProperties.php | 120 +++++++- ...cessInterceptorScopeLocalizerGenerator.php | 2 - ...nterceptorScopeLocalizerFunctionalTest.php | 5 +- .../BindProxyPropertiesTest.php | 280 ++++++++++++------ 4 files changed, 311 insertions(+), 96 deletions(-) diff --git a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperties.php b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperties.php index a39aaaf45..ec232c0f6 100644 --- a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperties.php +++ b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperties.php @@ -6,12 +6,17 @@ use Laminas\Code\Generator\ParameterGenerator; use Laminas\Code\Generator\PropertyGenerator; +use ProxyManager\Exception\UnsupportedProxiedClassException; use ProxyManager\Generator\MethodGenerator; use ProxyManager\ProxyGenerator\Util\Properties; use ReflectionClass; +use ReflectionProperty; +use function array_key_exists; use function implode; use function sprintf; +use function strtr; +use function var_export; use const PHP_EOL; @@ -43,19 +48,118 @@ public function __construct( . '@param \\Closure[] $suffixInterceptors method interceptors to be used before method logic' ); - $properties = Properties::fromReflectionClass($originalClass); + $localizedProperties = []; + $properties = Properties::fromReflectionClass($originalClass)->withoutNonReferenceableProperties(); + foreach ($properties->getAccessibleProperties() as $property) { + $propertyName = $property->getName(); - $bodyLines = ['$class = new \ReflectionObject($localizedObject);']; - foreach ($properties->getInstanceProperties() as $property) { - $bodyLines[] = sprintf( - '$this->bindProxyProperty($localizedObject, $class, \'%s\');', - $property->getName() - ); + $localizedProperties[] = '$this->' . $propertyName . ' = & $localizedObject->' . $propertyName . ';'; + } + + foreach ($properties->getPrivateProperties() as $property) { + $propertyName = $property->getName(); + + $localizedProperties[] = "\\Closure::bind(function () use (\$localizedObject) {\n " + . '$this->' . $propertyName . ' = & $localizedObject->' . $propertyName . ";\n" + . '}, $this, ' . var_export($property->getDeclaringClass()->getName(), true) + . ')->__invoke();'; + } + + $bodyLines = [ + implode("\n\n", $localizedProperties), + ]; + + $nonReferenceableProperties = Properties::fromReflectionClass($originalClass) + ->onlyNonReferenceableProperties() + ->onlyInstanceProperties(); + + if (! $nonReferenceableProperties->empty()) { + $bodyLines[] = '$class = new \ReflectionObject($localizedObject);'; + $bodyLines[] = $this->generateClassMapInitializationCode($nonReferenceableProperties); + + foreach ($nonReferenceableProperties->getInstanceProperties() as $property) { + $bodyLines[] = $this->generateCodeForPropertyBinding($property); + } } $bodyLines[] = sprintf('$this->%s = $prefixInterceptors;', $prefixInterceptors->getName()); $bodyLines[] = sprintf('$this->%s = $suffixInterceptors;', $suffixInterceptors->getName()); - $this->setBody(implode(PHP_EOL, $bodyLines)); } + + private function generateClassMapInitializationCode(Properties $properties): string + { + $classMapInitializationCode = '$classesMap = []; // Class name to ReflectionClass map' . PHP_EOL; + + $mappedClasses = []; + foreach ($properties->getPrivateProperties() as $property) { + $declaringClassName = $property->getDeclaringClass()->getName(); + if (array_key_exists($declaringClassName, $mappedClasses)) { + continue; + } + + $classMapInitializationCode .= sprintf( + '$classesMap[\'%s\'] = new \ReflectionClass(\'%s\');', + $declaringClassName, + '\\' . $declaringClassName + ); + $classMapInitializationCode .= PHP_EOL; + + $mappedClasses[$declaringClassName] = null; + } + + return $classMapInitializationCode; + } + + private function generateCodeForPropertyBinding(ReflectionProperty $property): string + { + $declaringClassName = $property->getDeclaringClass()->getName(); + $localizedPropertyCode = $property->isPrivate() + ? sprintf( + '$property = $classesMap[\'%s\']->getProperty(\'%s\');', + $declaringClassName, + $property->getName() + ) + : sprintf('$property = $class->getProperty(\'%s\');', $property->getName()); + $localizedPropertyCode .= PHP_EOL; + + if (! $property->isPublic()) { + $localizedPropertyCode .= '$property->setAccessible(true);' . PHP_EOL; + } + + $localizedPropertyCode .= <<<'CODE' + if (!$property->isInitialized($localizedObject)) { + throw new \{ EXCEPTION_CLASS }( + sprintf( + 'Cannot create reference for property $%s of class %s: property must be initialized', + $property->getName(), + $class->getName() + ) + ); + } + CODE; + + $codeToCreateReference = '$this->{ PROPERTY_NAME } = & $localizedObject->{ PROPERTY_NAME };'; + if ($property->isPrivate()) { + $codeToCreateReference = <<<'CODE' + \Closure::bind( + function () use ($localizedObject) { + $this->{ PROPERTY_NAME } = & $localizedObject->{ PROPERTY_NAME }; + }, + $this, + $property->getDeclaringClass()->getName() + )->__invoke(); + CODE; + } + + $localizedPropertyCode .= PHP_EOL . $codeToCreateReference . PHP_EOL; + + return strtr( + $localizedPropertyCode, + [ + '{ PROPERTY_NAME }' => $property->getName(), + '{ EXCEPTION_CLASS }' => UnsupportedProxiedClassException::class, + ] + ); + } } diff --git a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizerGenerator.php b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizerGenerator.php index 0d34e44c2..b2bbc33a2 100644 --- a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizerGenerator.php +++ b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizerGenerator.php @@ -16,7 +16,6 @@ use ProxyManager\ProxyGenerator\AccessInterceptor\PropertyGenerator\MethodPrefixInterceptors; use ProxyManager\ProxyGenerator\AccessInterceptor\PropertyGenerator\MethodSuffixInterceptors; use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\BindProxyProperties; -use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\BindProxyProperty; use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\InterceptedMethod; use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\MagicClone; use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\MagicGet; @@ -72,7 +71,6 @@ static function (MethodGenerator $generatedMethod) use ($originalClass, $classGe ), [ new StaticProxyConstructor($originalClass), - new BindProxyProperty($originalClass), new BindProxyProperties($originalClass, $prefixInterceptors, $suffixInterceptors), new SetMethodPrefixInterceptor($prefixInterceptors), new SetMethodSuffixInterceptor($suffixInterceptors), diff --git a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php index 8ca5c953b..05e725710 100644 --- a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php +++ b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php @@ -603,9 +603,10 @@ public function testWillInterceptAndReturnEarlyOnVoidMethod(): void } /** @group 574 */ - public function testWillRefuseToGenerateReferencesToTypedPropertiesWithoutDefaultValues(): void + public function testWillThrowExceptionOnInstanceWithUninitializedProperties(): void { - $instance = new ClassWithPublicStringNullableTypedProperty(); + $class = new ReflectionClass(ClassWithNonNullableTypedProperties::class); + $instance = $class->newInstanceWithoutConstructor(); $factory = new AccessInterceptorScopeLocalizerFactory(); $this->expectException(UnsupportedProxiedClassException::class); diff --git a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php index 6ca18d8a6..475830934 100644 --- a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php +++ b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php @@ -69,19 +69,32 @@ public function testBodyStructure(): void ); $expectedCode = <<<'PHP' -$class = new \ReflectionObject($localizedObject); -$this->bindProxyProperty($localizedObject, $class, 'publicProperty0'); -$this->bindProxyProperty($localizedObject, $class, 'publicProperty1'); -$this->bindProxyProperty($localizedObject, $class, 'publicProperty2'); -$this->bindProxyProperty($localizedObject, $class, 'protectedProperty0'); -$this->bindProxyProperty($localizedObject, $class, 'protectedProperty1'); -$this->bindProxyProperty($localizedObject, $class, 'protectedProperty2'); -$this->bindProxyProperty($localizedObject, $class, 'privateProperty0'); -$this->bindProxyProperty($localizedObject, $class, 'privateProperty1'); -$this->bindProxyProperty($localizedObject, $class, 'privateProperty2'); -$this->pre = $prefixInterceptors; -$this->post = $suffixInterceptors; -PHP; + $this->publicProperty0 = & $localizedObject->publicProperty0; + + $this->publicProperty1 = & $localizedObject->publicProperty1; + + $this->publicProperty2 = & $localizedObject->publicProperty2; + + $this->protectedProperty0 = & $localizedObject->protectedProperty0; + + $this->protectedProperty1 = & $localizedObject->protectedProperty1; + + $this->protectedProperty2 = & $localizedObject->protectedProperty2; + + \Closure::bind(function () use ($localizedObject) { + $this->privateProperty0 = & $localizedObject->privateProperty0; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateProperty1 = & $localizedObject->privateProperty1; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateProperty2 = & $localizedObject->privateProperty2; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedProperties')->__invoke(); + $this->pre = $prefixInterceptors; + $this->post = $suffixInterceptors; + PHP; self::assertSame($expectedCode, $method->getBody()); } @@ -95,20 +108,28 @@ public function testBodyStructureWithProtectedProperties(): void ); $expectedCode = <<<'PHP' -$class = new \ReflectionObject($localizedObject); -$this->bindProxyProperty($localizedObject, $class, 'property0'); -$this->bindProxyProperty($localizedObject, $class, 'property1'); -$this->bindProxyProperty($localizedObject, $class, 'property2'); -$this->bindProxyProperty($localizedObject, $class, 'property3'); -$this->bindProxyProperty($localizedObject, $class, 'property4'); -$this->bindProxyProperty($localizedObject, $class, 'property5'); -$this->bindProxyProperty($localizedObject, $class, 'property6'); -$this->bindProxyProperty($localizedObject, $class, 'property7'); -$this->bindProxyProperty($localizedObject, $class, 'property8'); -$this->bindProxyProperty($localizedObject, $class, 'property9'); -$this->pre = $prefixInterceptors; -$this->post = $suffixInterceptors; -PHP; + $this->property0 = & $localizedObject->property0; + + $this->property1 = & $localizedObject->property1; + + $this->property2 = & $localizedObject->property2; + + $this->property3 = & $localizedObject->property3; + + $this->property4 = & $localizedObject->property4; + + $this->property5 = & $localizedObject->property5; + + $this->property6 = & $localizedObject->property6; + + $this->property7 = & $localizedObject->property7; + + $this->property8 = & $localizedObject->property8; + + $this->property9 = & $localizedObject->property9; + $this->pre = $prefixInterceptors; + $this->post = $suffixInterceptors; + PHP; self::assertSame( $expectedCode, @@ -125,20 +146,48 @@ public function testBodyStructureWithPrivateProperties(): void ); $expectedCode = <<<'PHP' -$class = new \ReflectionObject($localizedObject); -$this->bindProxyProperty($localizedObject, $class, 'property0'); -$this->bindProxyProperty($localizedObject, $class, 'property1'); -$this->bindProxyProperty($localizedObject, $class, 'property2'); -$this->bindProxyProperty($localizedObject, $class, 'property3'); -$this->bindProxyProperty($localizedObject, $class, 'property4'); -$this->bindProxyProperty($localizedObject, $class, 'property5'); -$this->bindProxyProperty($localizedObject, $class, 'property6'); -$this->bindProxyProperty($localizedObject, $class, 'property7'); -$this->bindProxyProperty($localizedObject, $class, 'property8'); -$this->bindProxyProperty($localizedObject, $class, 'property9'); -$this->pre = $prefixInterceptors; -$this->post = $suffixInterceptors; -PHP; + \Closure::bind(function () use ($localizedObject) { + $this->property0 = & $localizedObject->property0; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property1 = & $localizedObject->property1; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property2 = & $localizedObject->property2; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property3 = & $localizedObject->property3; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property4 = & $localizedObject->property4; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property5 = & $localizedObject->property5; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property6 = & $localizedObject->property6; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property7 = & $localizedObject->property7; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property8 = & $localizedObject->property8; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property9 = & $localizedObject->property9; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + $this->pre = $prefixInterceptors; + $this->post = $suffixInterceptors; + PHP; self::assertSame( $expectedCode, @@ -155,49 +204,112 @@ public function testBodyStructureWithTypedProperties(): void ); $expectedCode = <<<'PHP' -$class = new \ReflectionObject($localizedObject); -$this->bindProxyProperty($localizedObject, $class, 'publicUnTypedProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicBoolProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicNullableBoolProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicIntProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicNullableIntProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicFloatProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicNullableFloatProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicStringProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicNullableStringProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicArrayProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicNullableArrayProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicIterableProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicNullableIterableProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedUnTypedProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedBoolProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedNullableBoolProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedIntProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedNullableIntProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedFloatProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedNullableFloatProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedStringProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedNullableStringProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedArrayProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedNullableArrayProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedIterableProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedNullableIterableProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateUnTypedProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateBoolProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateNullableBoolProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateIntProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateNullableIntProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateFloatProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateNullableFloatProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateStringProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateNullableStringProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateArrayProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateNullableArrayProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateIterableProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateNullableIterableProperty'); -$this->pre = $prefixInterceptors; -$this->post = $suffixInterceptors; -PHP; + $this->publicUnTypedProperty = & $localizedObject->publicUnTypedProperty; + + $this->publicBoolProperty = & $localizedObject->publicBoolProperty; + + $this->publicNullableBoolProperty = & $localizedObject->publicNullableBoolProperty; + + $this->publicIntProperty = & $localizedObject->publicIntProperty; + + $this->publicNullableIntProperty = & $localizedObject->publicNullableIntProperty; + + $this->publicFloatProperty = & $localizedObject->publicFloatProperty; + + $this->publicNullableFloatProperty = & $localizedObject->publicNullableFloatProperty; + + $this->publicStringProperty = & $localizedObject->publicStringProperty; + + $this->publicNullableStringProperty = & $localizedObject->publicNullableStringProperty; + + $this->publicArrayProperty = & $localizedObject->publicArrayProperty; + + $this->publicNullableArrayProperty = & $localizedObject->publicNullableArrayProperty; + + $this->publicIterableProperty = & $localizedObject->publicIterableProperty; + + $this->publicNullableIterableProperty = & $localizedObject->publicNullableIterableProperty; + + $this->protectedUnTypedProperty = & $localizedObject->protectedUnTypedProperty; + + $this->protectedBoolProperty = & $localizedObject->protectedBoolProperty; + + $this->protectedNullableBoolProperty = & $localizedObject->protectedNullableBoolProperty; + + $this->protectedIntProperty = & $localizedObject->protectedIntProperty; + + $this->protectedNullableIntProperty = & $localizedObject->protectedNullableIntProperty; + + $this->protectedFloatProperty = & $localizedObject->protectedFloatProperty; + + $this->protectedNullableFloatProperty = & $localizedObject->protectedNullableFloatProperty; + + $this->protectedStringProperty = & $localizedObject->protectedStringProperty; + + $this->protectedNullableStringProperty = & $localizedObject->protectedNullableStringProperty; + + $this->protectedArrayProperty = & $localizedObject->protectedArrayProperty; + + $this->protectedNullableArrayProperty = & $localizedObject->protectedNullableArrayProperty; + + $this->protectedIterableProperty = & $localizedObject->protectedIterableProperty; + + $this->protectedNullableIterableProperty = & $localizedObject->protectedNullableIterableProperty; + + \Closure::bind(function () use ($localizedObject) { + $this->privateUnTypedProperty = & $localizedObject->privateUnTypedProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateBoolProperty = & $localizedObject->privateBoolProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateNullableBoolProperty = & $localizedObject->privateNullableBoolProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateIntProperty = & $localizedObject->privateIntProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateNullableIntProperty = & $localizedObject->privateNullableIntProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateFloatProperty = & $localizedObject->privateFloatProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateNullableFloatProperty = & $localizedObject->privateNullableFloatProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateStringProperty = & $localizedObject->privateStringProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateNullableStringProperty = & $localizedObject->privateNullableStringProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateArrayProperty = & $localizedObject->privateArrayProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateNullableArrayProperty = & $localizedObject->privateNullableArrayProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateIterableProperty = & $localizedObject->privateIterableProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateNullableIterableProperty = & $localizedObject->privateNullableIterableProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + $this->pre = $prefixInterceptors; + $this->post = $suffixInterceptors; + PHP; self::assertSame( $expectedCode, From 88737ee8f6a2911995223836bb5890f09cef4a0d Mon Sep 17 00:00:00 2001 From: Petr Buchyn Date: Mon, 13 Dec 2021 12:11:37 +0200 Subject: [PATCH 08/19] Updated dependencies, composer.json changed to allow PHP 8.1 --- composer.json | 2 +- composer.lock | 855 ++++++++++++++++++++++++++++---------------------- 2 files changed, 485 insertions(+), 372 deletions(-) diff --git a/composer.json b/composer.json index 279f735cc..3dbd228b9 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ } ], "require": { - "php": "~8.0.0", + "php": ">=8.0.0", "composer-runtime-api": "^2.1.0", "laminas/laminas-code": "^4.4.2", "webimpress/safe-writer": "^2.2.0" diff --git a/composer.lock b/composer.lock index cec4ae8d2..5da90fd16 100644 --- a/composer.lock +++ b/composer.lock @@ -4,47 +4,46 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "da7e8e29fd166baf1cd0f010bacd1478", + "content-hash": "9de8b5eee59bc3252d022a6fae3b4524", "packages": [ { "name": "laminas/laminas-code", - "version": "4.4.2", + "version": "4.5.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-code.git", - "reference": "54251ab2b16c41c6980387839496b235f5f6e10b" + "reference": "c99ef8e5629c33bfaa3a8f1df773e916af564cd6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-code/zipball/54251ab2b16c41c6980387839496b235f5f6e10b", - "reference": "54251ab2b16c41c6980387839496b235f5f6e10b", + "url": "https://api.github.com/repos/laminas/laminas-code/zipball/c99ef8e5629c33bfaa3a8f1df773e916af564cd6", + "reference": "c99ef8e5629c33bfaa3a8f1df773e916af564cd6", "shasum": "" }, "require": { - "php": "^7.4 || ~8.0.0" - }, - "conflict": { - "phpspec/prophecy": "<1.9.0" + "php": ">=7.4, <8.2" }, "require-dev": { - "doctrine/annotations": "^1.10.4", + "doctrine/annotations": "^1.13.2", "ext-phar": "*", - "laminas/laminas-coding-standard": "^2.1.4", - "laminas/laminas-stdlib": "^3.3.0", - "phpunit/phpunit": "^9.4.2", - "psalm/plugin-phpunit": "^0.14.0", - "vimeo/psalm": "^4.3.1" + "laminas/laminas-coding-standard": "^2.3.0", + "laminas/laminas-stdlib": "^3.6.1", + "phpunit/phpunit": "^9.5.10", + "psalm/plugin-phpunit": "^0.16.1", + "vimeo/psalm": "^4.13.1" }, "suggest": { "doctrine/annotations": "Doctrine\\Common\\Annotations >=1.0 for annotation features", - "laminas/laminas-stdlib": "Laminas\\Stdlib component", - "laminas/laminas-zendframework-bridge": "A bridge with Zend Framework" + "laminas/laminas-stdlib": "Laminas\\Stdlib component" }, "type": "library", "autoload": { "psr-4": { "Laminas\\Code\\": "src/" - } + }, + "files": [ + "polyfill/ReflectionEnumPolyfill.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -71,7 +70,7 @@ "type": "community_bridge" } ], - "time": "2021-07-09T11:58:40+00:00" + "time": "2021-12-07T06:00:32+00:00" }, { "name": "webimpress/safe-writer", @@ -136,27 +135,27 @@ "packages-dev": [ { "name": "amphp/amp", - "version": "v2.5.2", + "version": "v2.6.1", "source": { "type": "git", "url": "https://github.com/amphp/amp.git", - "reference": "efca2b32a7580087adb8aabbff6be1dc1bb924a9" + "reference": "c5fc66a78ee38d7ac9195a37bacaf940eb3f65ae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/amp/zipball/efca2b32a7580087adb8aabbff6be1dc1bb924a9", - "reference": "efca2b32a7580087adb8aabbff6be1dc1bb924a9", + "url": "https://api.github.com/repos/amphp/amp/zipball/c5fc66a78ee38d7ac9195a37bacaf940eb3f65ae", + "reference": "c5fc66a78ee38d7ac9195a37bacaf940eb3f65ae", "shasum": "" }, "require": { - "php": ">=7" + "php": ">=7.1" }, "require-dev": { "amphp/php-cs-fixer-config": "dev-master", "amphp/phpunit-util": "^1", "ext-json": "*", "jetbrains/phpstorm-stubs": "^2019.3", - "phpunit/phpunit": "^6.0.9 | ^7", + "phpunit/phpunit": "^7 | ^8 | ^9", "psalm/phar": "^3.11@dev", "react/promise": "^2" }, @@ -213,7 +212,7 @@ "support": { "irc": "irc://irc.freenode.org/amphp", "issues": "https://github.com/amphp/amp/issues", - "source": "https://github.com/amphp/amp/tree/v2.5.2" + "source": "https://github.com/amphp/amp/tree/v2.6.1" }, "funding": [ { @@ -221,7 +220,7 @@ "type": "github" } ], - "time": "2021-01-10T17:06:37+00:00" + "time": "2021-09-23T18:43:08+00:00" }, { "name": "amphp/byte-stream", @@ -450,16 +449,16 @@ }, { "name": "composer/package-versions-deprecated", - "version": "1.11.99.2", + "version": "1.11.99.4", "source": { "type": "git", "url": "https://github.com/composer/package-versions-deprecated.git", - "reference": "c6522afe5540d5fc46675043d3ed5a45a740b27c" + "reference": "b174585d1fe49ceed21928a945138948cb394600" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/c6522afe5540d5fc46675043d3ed5a45a740b27c", - "reference": "c6522afe5540d5fc46675043d3ed5a45a740b27c", + "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/b174585d1fe49ceed21928a945138948cb394600", + "reference": "b174585d1fe49ceed21928a945138948cb394600", "shasum": "" }, "require": { @@ -503,7 +502,7 @@ "description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)", "support": { "issues": "https://github.com/composer/package-versions-deprecated/issues", - "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.2" + "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.4" }, "funding": [ { @@ -519,20 +518,91 @@ "type": "tidelift" } ], - "time": "2021-05-24T07:46:03+00:00" + "time": "2021-09-13T08:41:34+00:00" + }, + { + "name": "composer/pcre", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/composer/pcre.git", + "reference": "3d322d715c43a1ac36c7fe215fa59336265500f2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/pcre/zipball/3d322d715c43a1ac36c7fe215fa59336265500f2", + "reference": "3d322d715c43a1ac36c7fe215fa59336265500f2", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1", + "phpstan/phpstan-strict-rules": "^1.1", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Pcre\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "keywords": [ + "PCRE", + "preg", + "regex", + "regular expression" + ], + "support": { + "issues": "https://github.com/composer/pcre/issues", + "source": "https://github.com/composer/pcre/tree/1.0.0" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2021-12-06T15:17:27+00:00" }, { "name": "composer/semver", - "version": "3.2.5", + "version": "3.2.6", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "31f3ea725711245195f62e54ffa402d8ef2fdba9" + "reference": "83e511e247de329283478496f7a1e114c9517506" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/31f3ea725711245195f62e54ffa402d8ef2fdba9", - "reference": "31f3ea725711245195f62e54ffa402d8ef2fdba9", + "url": "https://api.github.com/repos/composer/semver/zipball/83e511e247de329283478496f7a1e114c9517506", + "reference": "83e511e247de329283478496f7a1e114c9517506", "shasum": "" }, "require": { @@ -584,7 +654,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.2.5" + "source": "https://github.com/composer/semver/tree/3.2.6" }, "funding": [ { @@ -600,29 +670,31 @@ "type": "tidelift" } ], - "time": "2021-05-24T12:41:47+00:00" + "time": "2021-10-25T11:34:17+00:00" }, { "name": "composer/xdebug-handler", - "version": "2.0.1", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/composer/xdebug-handler.git", - "reference": "964adcdd3a28bf9ed5d9ac6450064e0d71ed7496" + "reference": "6555461e76962fd0379c444c46fd558a0fcfb65e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/964adcdd3a28bf9ed5d9ac6450064e0d71ed7496", - "reference": "964adcdd3a28bf9ed5d9ac6450064e0d71ed7496", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/6555461e76962fd0379c444c46fd558a0fcfb65e", + "reference": "6555461e76962fd0379c444c46fd558a0fcfb65e", "shasum": "" }, "require": { + "composer/pcre": "^1", "php": "^5.3.2 || ^7.0 || ^8.0", - "psr/log": "^1.0" + "psr/log": "^1 || ^2 || ^3" }, "require-dev": { - "phpstan/phpstan": "^0.12.55", - "symfony/phpunit-bridge": "^4.2 || ^5" + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-strict-rules": "^1.1", + "symfony/phpunit-bridge": "^4.2 || ^5.0 || ^6.0" }, "type": "library", "autoload": { @@ -648,7 +720,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/xdebug-handler/issues", - "source": "https://github.com/composer/xdebug-handler/tree/2.0.1" + "source": "https://github.com/composer/xdebug-handler/tree/2.0.3" }, "funding": [ { @@ -664,7 +736,7 @@ "type": "tidelift" } ], - "time": "2021-05-05T19:37:51+00:00" + "time": "2021-12-08T13:07:32+00:00" }, { "name": "dealerdirect/phpcodesniffer-composer-installer", @@ -775,16 +847,16 @@ }, { "name": "doctrine/annotations", - "version": "1.13.1", + "version": "1.13.2", "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "e6e7b7d5b45a2f2abc5460cc6396480b2b1d321f" + "reference": "5b668aef16090008790395c02c893b1ba13f7e08" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/e6e7b7d5b45a2f2abc5460cc6396480b2b1d321f", - "reference": "e6e7b7d5b45a2f2abc5460cc6396480b2b1d321f", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/5b668aef16090008790395c02c893b1ba13f7e08", + "reference": "5b668aef16090008790395c02c893b1ba13f7e08", "shasum": "" }, "require": { @@ -841,9 +913,9 @@ ], "support": { "issues": "https://github.com/doctrine/annotations/issues", - "source": "https://github.com/doctrine/annotations/tree/1.13.1" + "source": "https://github.com/doctrine/annotations/tree/1.13.2" }, - "time": "2021-05-16T18:07:53+00:00" + "time": "2021-08-05T19:00:23+00:00" }, { "name": "doctrine/coding-standard", @@ -1314,25 +1386,25 @@ }, { "name": "infection/abstract-testframework-adapter", - "version": "0.3.1", + "version": "0.5.0", "source": { "type": "git", "url": "https://github.com/infection/abstract-testframework-adapter.git", - "reference": "c52539339f28d6b67625ff24496289b3e6d66025" + "reference": "18925e20d15d1a5995bb85c9dc09e8751e1e069b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/infection/abstract-testframework-adapter/zipball/c52539339f28d6b67625ff24496289b3e6d66025", - "reference": "c52539339f28d6b67625ff24496289b3e6d66025", + "url": "https://api.github.com/repos/infection/abstract-testframework-adapter/zipball/18925e20d15d1a5995bb85c9dc09e8751e1e069b", + "reference": "18925e20d15d1a5995bb85c9dc09e8751e1e069b", "shasum": "" }, "require": { - "php": "^7.3 || ^8.0" + "php": "^7.4 || ^8.0" }, "require-dev": { "ergebnis/composer-normalize": "^2.8", - "friendsofphp/php-cs-fixer": "^2.16", - "phpunit/phpunit": "^9.0" + "friendsofphp/php-cs-fixer": "^2.17", + "phpunit/phpunit": "^9.5" }, "type": "library", "autoload": { @@ -1353,9 +1425,19 @@ "description": "Abstract Test Framework Adapter for Infection", "support": { "issues": "https://github.com/infection/abstract-testframework-adapter/issues", - "source": "https://github.com/infection/abstract-testframework-adapter/tree/0.3" + "source": "https://github.com/infection/abstract-testframework-adapter/tree/0.5.0" }, - "time": "2020-08-30T13:50:12+00:00" + "funding": [ + { + "url": "https://github.com/infection", + "type": "github" + }, + { + "url": "https://opencollective.com/infection", + "type": "open_collective" + } + ], + "time": "2021-08-17T18:49:12+00:00" }, { "name": "infection/extension-installer", @@ -1415,16 +1497,16 @@ }, { "name": "infection/include-interceptor", - "version": "0.2.4", + "version": "0.2.5", "source": { "type": "git", "url": "https://github.com/infection/include-interceptor.git", - "reference": "e3cf9317a7fd554ab60a5587f028b16418cc4264" + "reference": "0cc76d95a79d9832d74e74492b0a30139904bdf7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/infection/include-interceptor/zipball/e3cf9317a7fd554ab60a5587f028b16418cc4264", - "reference": "e3cf9317a7fd554ab60a5587f028b16418cc4264", + "url": "https://api.github.com/repos/infection/include-interceptor/zipball/0cc76d95a79d9832d74e74492b0a30139904bdf7", + "reference": "0cc76d95a79d9832d74e74492b0a30139904bdf7", "shasum": "" }, "require-dev": { @@ -1455,35 +1537,45 @@ "description": "Stream Wrapper: Include Interceptor. Allows to replace included (autoloaded) file with another one.", "support": { "issues": "https://github.com/infection/include-interceptor/issues", - "source": "https://github.com/infection/include-interceptor/tree/0.2.4" + "source": "https://github.com/infection/include-interceptor/tree/0.2.5" }, - "time": "2020-08-07T22:40:37+00:00" + "funding": [ + { + "url": "https://github.com/infection", + "type": "github" + }, + { + "url": "https://opencollective.com/infection", + "type": "open_collective" + } + ], + "time": "2021-08-09T10:03:57+00:00" }, { "name": "infection/infection", - "version": "0.23.0", + "version": "0.25.3", "source": { "type": "git", "url": "https://github.com/infection/infection.git", - "reference": "ac87ae49e9f192f610276565e54469231dca7837" + "reference": "f7a1af285476eeef7e72cedcfd69fa11fbb61c71" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/infection/infection/zipball/ac87ae49e9f192f610276565e54469231dca7837", - "reference": "ac87ae49e9f192f610276565e54469231dca7837", + "url": "https://api.github.com/repos/infection/infection/zipball/f7a1af285476eeef7e72cedcfd69fa11fbb61c71", + "reference": "f7a1af285476eeef7e72cedcfd69fa11fbb61c71", "shasum": "" }, "require": { + "composer-runtime-api": "^2.0", "composer/xdebug-handler": "^2.0", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", - "infection/abstract-testframework-adapter": "^0.3.1", + "infection/abstract-testframework-adapter": "^0.5.0", "infection/extension-installer": "^0.1.0", - "infection/include-interceptor": "^0.2.4", - "justinrainbow/json-schema": "^5.2", + "infection/include-interceptor": "^0.2.5", + "justinrainbow/json-schema": "^5.2.10", "nikic/php-parser": "^4.10.3", - "ocramius/package-versions": "^1.9.0 || ^2.0", "ondram/ci-detector": "^3.3.0", "php": "^7.4.7 || ^8.0", "sanmai/later": "^0.1.1", @@ -1494,7 +1586,7 @@ "symfony/filesystem": "^3.4.29 || ^4.1.19 || ^5.0", "symfony/finder": "^3.4.29 || ^4.1.19 || ^5.0", "symfony/process": "^3.4.29 || ^4.1.19 || ^5.0", - "thecodingmachine/safe": "^1.0", + "thecodingmachine/safe": "^1.1.3", "webmozart/assert": "^1.3", "webmozart/path-util": "^2.3" }, @@ -1503,6 +1595,7 @@ "symfony/console": "=4.1.5" }, "require-dev": { + "brianium/paratest": "^6.3", "ext-simplexml": "*", "helmich/phpunit-json-assert": "^3.0", "phpspec/prophecy-phpunit": "^2.0", @@ -1570,7 +1663,7 @@ ], "support": { "issues": "https://github.com/infection/infection/issues", - "source": "https://github.com/infection/infection/tree/0.23.0" + "source": "https://github.com/infection/infection/tree/0.25.3" }, "funding": [ { @@ -1582,20 +1675,20 @@ "type": "open_collective" } ], - "time": "2021-05-13T16:12:33+00:00" + "time": "2021-10-02T13:16:05+00:00" }, { "name": "justinrainbow/json-schema", - "version": "5.2.10", + "version": "5.2.11", "source": { "type": "git", "url": "https://github.com/justinrainbow/json-schema.git", - "reference": "2ba9c8c862ecd5510ed16c6340aa9f6eadb4f31b" + "reference": "2ab6744b7296ded80f8cc4f9509abbff393399aa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/2ba9c8c862ecd5510ed16c6340aa9f6eadb4f31b", - "reference": "2ba9c8c862ecd5510ed16c6340aa9f6eadb4f31b", + "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/2ab6744b7296ded80f8cc4f9509abbff393399aa", + "reference": "2ab6744b7296ded80f8cc4f9509abbff393399aa", "shasum": "" }, "require": { @@ -1650,9 +1743,9 @@ ], "support": { "issues": "https://github.com/justinrainbow/json-schema/issues", - "source": "https://github.com/justinrainbow/json-schema/tree/5.2.10" + "source": "https://github.com/justinrainbow/json-schema/tree/5.2.11" }, - "time": "2020-05-27T16:41:55+00:00" + "time": "2021-07-22T09:24:00+00:00" }, { "name": "myclabs/deep-copy", @@ -1765,16 +1858,16 @@ }, { "name": "nikic/php-parser", - "version": "v4.11.0", + "version": "v4.13.2", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "fe14cf3672a149364fb66dfe11bf6549af899f94" + "reference": "210577fe3cf7badcc5814d99455df46564f3c077" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/fe14cf3672a149364fb66dfe11bf6549af899f94", - "reference": "fe14cf3672a149364fb66dfe11bf6549af899f94", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/210577fe3cf7badcc5814d99455df46564f3c077", + "reference": "210577fe3cf7badcc5814d99455df46564f3c077", "shasum": "" }, "require": { @@ -1815,9 +1908,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.11.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.13.2" }, - "time": "2021-07-03T13:36:55+00:00" + "time": "2021-11-30T19:35:32+00:00" }, { "name": "ondram/ci-detector", @@ -1946,16 +2039,16 @@ }, { "name": "phar-io/manifest", - "version": "2.0.1", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/phar-io/manifest.git", - "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133" + "reference": "97803eca37d319dfa7826cc2437fc020857acb53" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/85265efd3af7ba3ca4b2a2c34dbfc5788dd29133", - "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53", "shasum": "" }, "require": { @@ -2000,9 +2093,9 @@ "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", "support": { "issues": "https://github.com/phar-io/manifest/issues", - "source": "https://github.com/phar-io/manifest/tree/master" + "source": "https://github.com/phar-io/manifest/tree/2.0.3" }, - "time": "2020-06-27T14:33:11+00:00" + "time": "2021-07-20T11:28:43+00:00" }, { "name": "phar-io/version", @@ -2057,20 +2150,20 @@ }, { "name": "phpbench/container", - "version": "2.1.0", + "version": "2.2.0", "source": { "type": "git", "url": "https://github.com/phpbench/container.git", - "reference": "def10824b6009d31028fa8dc9f73f4b26b234a67" + "reference": "4af6c2619296e95b72409fd6244f000276277047" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpbench/container/zipball/def10824b6009d31028fa8dc9f73f4b26b234a67", - "reference": "def10824b6009d31028fa8dc9f73f4b26b234a67", + "url": "https://api.github.com/repos/phpbench/container/zipball/4af6c2619296e95b72409fd6244f000276277047", + "reference": "4af6c2619296e95b72409fd6244f000276277047", "shasum": "" }, "require": { - "psr/container": "^1.0", + "psr/container": "^1.0|^2.0", "symfony/options-resolver": "^4.2 || ^5.0" }, "require-dev": { @@ -2102,22 +2195,22 @@ "description": "Simple, configurable, service container.", "support": { "issues": "https://github.com/phpbench/container/issues", - "source": "https://github.com/phpbench/container/tree/2.1.0" + "source": "https://github.com/phpbench/container/tree/2.2.0" }, - "time": "2021-04-04T07:23:17+00:00" + "time": "2021-07-14T20:56:29+00:00" }, { "name": "phpbench/dom", - "version": "0.3.1", + "version": "0.3.2", "source": { "type": "git", "url": "https://github.com/phpbench/dom.git", - "reference": "d26e615c4d64da41d168ab1096e4f55d97f2344f" + "reference": "b013b717832ddbaadf2a40984b04bc66af9a7110" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpbench/dom/zipball/d26e615c4d64da41d168ab1096e4f55d97f2344f", - "reference": "d26e615c4d64da41d168ab1096e4f55d97f2344f", + "url": "https://api.github.com/repos/phpbench/dom/zipball/b013b717832ddbaadf2a40984b04bc66af9a7110", + "reference": "b013b717832ddbaadf2a40984b04bc66af9a7110", "shasum": "" }, "require": { @@ -2153,53 +2246,53 @@ "description": "DOM wrapper to simplify working with the PHP DOM implementation", "support": { "issues": "https://github.com/phpbench/dom/issues", - "source": "https://github.com/phpbench/dom/tree/0.3.1" + "source": "https://github.com/phpbench/dom/tree/0.3.2" }, - "time": "2021-04-21T20:44:19+00:00" + "time": "2021-09-24T15:26:07+00:00" }, { "name": "phpbench/phpbench", - "version": "1.0.3", + "version": "1.2.2", "source": { "type": "git", "url": "https://github.com/phpbench/phpbench.git", - "reference": "9827767f62f6f84974b1317f53536d68ae8db5e1" + "reference": "0799479fcb4d4bf01d2320c2ea051c04e55adf39" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpbench/phpbench/zipball/9827767f62f6f84974b1317f53536d68ae8db5e1", - "reference": "9827767f62f6f84974b1317f53536d68ae8db5e1", + "url": "https://api.github.com/repos/phpbench/phpbench/zipball/0799479fcb4d4bf01d2320c2ea051c04e55adf39", + "reference": "0799479fcb4d4bf01d2320c2ea051c04e55adf39", "shasum": "" }, "require": { - "doctrine/annotations": "^1.2.7", + "doctrine/annotations": "^1.13", "ext-dom": "*", "ext-json": "*", "ext-pcre": "*", "ext-reflection": "*", "ext-spl": "*", "ext-tokenizer": "*", - "php": "^7.2 || ^8.0", + "php": "^7.3 || ^8.0", "phpbench/container": "^2.1", "phpbench/dom": "~0.3.1", "psr/log": "^1.1", "seld/jsonlint": "^1.1", - "symfony/console": "^4.2 || ^5.0", - "symfony/filesystem": "^4.2 || ^5.0", - "symfony/finder": "^4.2 || ^5.0", - "symfony/options-resolver": "^4.2 || ^5.0", - "symfony/process": "^4.2 || ^5.0", + "symfony/console": "^4.2 || ^5.0 || ^6.0", + "symfony/filesystem": "^4.2 || ^5.0 || ^6.0", + "symfony/finder": "^4.2 || ^5.0 || ^6.0", + "symfony/options-resolver": "^4.2 || ^5.0 || ^6.0", + "symfony/process": "^4.2 || ^5.0 || ^6.0", "webmozart/path-util": "^2.3" }, "require-dev": { "dantleech/invoke": "^2.0", - "friendsofphp/php-cs-fixer": "^2.13.1", + "friendsofphp/php-cs-fixer": "^3.0", "jangregor/phpstan-prophecy": "^0.8.1", "phpspec/prophecy": "^1.12", "phpstan/phpstan": "^0.12.7", "phpunit/phpunit": "^8.5.8 || ^9.0", - "symfony/error-handler": "^5.2", - "symfony/var-dumper": "^4.0 || ^5.0" + "symfony/error-handler": "^5.2 || ^6.0", + "symfony/var-dumper": "^4.0 || ^5.0 || ^6.0" }, "suggest": { "ext-xdebug": "For Xdebug profiling extension." @@ -2210,14 +2303,16 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "1.1-dev" } }, "autoload": { + "files": [ + "lib/Report/Func/functions.php" + ], "psr-4": { "PhpBench\\": "lib/", - "PhpBench\\Extensions\\XDebug\\": "extensions/xdebug/lib/", - "PhpBench\\Extensions\\Reports\\": "extensions/reports/lib/" + "PhpBench\\Extensions\\XDebug\\": "extensions/xdebug/lib/" } }, "notification-url": "https://packagist.org/downloads/", @@ -2233,7 +2328,7 @@ "description": "PHP Benchmarking Framework", "support": { "issues": "https://github.com/phpbench/phpbench/issues", - "source": "https://github.com/phpbench/phpbench/tree/1.0.3" + "source": "https://github.com/phpbench/phpbench/tree/1.2.2" }, "funding": [ { @@ -2241,7 +2336,7 @@ "type": "github" } ], - "time": "2021-07-03T09:36:14+00:00" + "time": "2021-12-11T20:52:22+00:00" }, { "name": "phpdocumentor/reflection-common", @@ -2298,16 +2393,16 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "5.2.2", + "version": "5.3.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556" + "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/069a785b2141f5bcf49f3e353548dc1cce6df556", - "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", + "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", "shasum": "" }, "require": { @@ -2318,7 +2413,8 @@ "webmozart/assert": "^1.9.1" }, "require-dev": { - "mockery/mockery": "~1.3.2" + "mockery/mockery": "~1.3.2", + "psalm/phar": "^4.8" }, "type": "library", "extra": { @@ -2348,22 +2444,22 @@ "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", "support": { "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/master" + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0" }, - "time": "2020-09-03T19:13:55+00:00" + "time": "2021-10-19T17:43:47+00:00" }, { "name": "phpdocumentor/type-resolver", - "version": "1.4.0", + "version": "1.5.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0" + "reference": "a12f7e301eb7258bb68acd89d4aefa05c2906cae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", - "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/a12f7e301eb7258bb68acd89d4aefa05c2906cae", + "reference": "a12f7e301eb7258bb68acd89d4aefa05c2906cae", "shasum": "" }, "require": { @@ -2371,7 +2467,8 @@ "phpdocumentor/reflection-common": "^2.0" }, "require-dev": { - "ext-tokenizer": "*" + "ext-tokenizer": "*", + "psalm/phar": "^4.8" }, "type": "library", "extra": { @@ -2397,39 +2494,39 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.4.0" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.5.1" }, - "time": "2020-09-17T18:55:26+00:00" + "time": "2021-10-02T14:08:47+00:00" }, { "name": "phpspec/prophecy", - "version": "1.13.0", + "version": "v1.15.0", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "be1996ed8adc35c3fd795488a653f4b518be70ea" + "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/be1996ed8adc35c3fd795488a653f4b518be70ea", - "reference": "be1996ed8adc35c3fd795488a653f4b518be70ea", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bbcd7380b0ebf3961ee21409db7b38bc31d69a13", + "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13", "shasum": "" }, "require": { "doctrine/instantiator": "^1.2", - "php": "^7.2 || ~8.0, <8.1", + "php": "^7.2 || ~8.0, <8.2", "phpdocumentor/reflection-docblock": "^5.2", "sebastian/comparator": "^3.0 || ^4.0", "sebastian/recursion-context": "^3.0 || ^4.0" }, "require-dev": { - "phpspec/phpspec": "^6.0", + "phpspec/phpspec": "^6.0 || ^7.0", "phpunit/phpunit": "^8.0 || ^9.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.11.x-dev" + "dev-master": "1.x-dev" } }, "autoload": { @@ -2464,22 +2561,22 @@ ], "support": { "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/1.13.0" + "source": "https://github.com/phpspec/prophecy/tree/v1.15.0" }, - "time": "2021-03-17T13:42:18+00:00" + "time": "2021-12-08T12:19:24+00:00" }, { "name": "phpstan/phpdoc-parser", - "version": "0.5.5", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "ea0b17460ec38e20d7eb64e7ec49b5d44af5d28c" + "reference": "dbc093d7af60eff5cd575d2ed761b15ed40bd08e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/ea0b17460ec38e20d7eb64e7ec49b5d44af5d28c", - "reference": "ea0b17460ec38e20d7eb64e7ec49b5d44af5d28c", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/dbc093d7af60eff5cd575d2ed761b15ed40bd08e", + "reference": "dbc093d7af60eff5cd575d2ed761b15ed40bd08e", "shasum": "" }, "require": { @@ -2488,15 +2585,15 @@ "require-dev": { "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^0.12.87", - "phpstan/phpstan-strict-rules": "^0.12.5", + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-strict-rules": "^1.0", "phpunit/phpunit": "^9.5", "symfony/process": "^5.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "0.5-dev" + "dev-master": "1.0-dev" } }, "autoload": { @@ -2513,29 +2610,29 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/0.5.5" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.2.0" }, - "time": "2021-06-11T13:24:46+00:00" + "time": "2021-09-16T20:46:02+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "9.2.6", + "version": "9.2.10", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "f6293e1b30a2354e8428e004689671b83871edde" + "reference": "d5850aaf931743067f4bfc1ae4cbd06468400687" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f6293e1b30a2354e8428e004689671b83871edde", - "reference": "f6293e1b30a2354e8428e004689671b83871edde", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/d5850aaf931743067f4bfc1ae4cbd06468400687", + "reference": "d5850aaf931743067f4bfc1ae4cbd06468400687", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.10.2", + "nikic/php-parser": "^4.13.0", "php": ">=7.3", "phpunit/php-file-iterator": "^3.0.3", "phpunit/php-text-template": "^2.0.2", @@ -2584,7 +2681,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.6" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.10" }, "funding": [ { @@ -2592,20 +2689,20 @@ "type": "github" } ], - "time": "2021-03-28T07:26:59+00:00" + "time": "2021-12-05T09:12:13+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "3.0.5", + "version": "3.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8" + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/aa4be8575f26070b100fccb67faabb28f21f66f8", - "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", "shasum": "" }, "require": { @@ -2644,7 +2741,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.5" + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" }, "funding": [ { @@ -2652,7 +2749,7 @@ "type": "github" } ], - "time": "2020-09-28T05:57:25+00:00" + "time": "2021-12-02T12:48:52+00:00" }, { "name": "phpunit/php-invoker", @@ -2837,16 +2934,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.5.6", + "version": "9.5.10", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "fb9b8333f14e3dce976a60ef6a7e05c7c7ed8bfb" + "reference": "c814a05837f2edb0d1471d6e3f4ab3501ca3899a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/fb9b8333f14e3dce976a60ef6a7e05c7c7ed8bfb", - "reference": "fb9b8333f14e3dce976a60ef6a7e05c7c7ed8bfb", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c814a05837f2edb0d1471d6e3f4ab3501ca3899a", + "reference": "c814a05837f2edb0d1471d6e3f4ab3501ca3899a", "shasum": "" }, "require": { @@ -2858,11 +2955,11 @@ "ext-xml": "*", "ext-xmlwriter": "*", "myclabs/deep-copy": "^1.10.1", - "phar-io/manifest": "^2.0.1", + "phar-io/manifest": "^2.0.3", "phar-io/version": "^3.0.2", "php": ">=7.3", "phpspec/prophecy": "^1.12.1", - "phpunit/php-code-coverage": "^9.2.3", + "phpunit/php-code-coverage": "^9.2.7", "phpunit/php-file-iterator": "^3.0.5", "phpunit/php-invoker": "^3.1.1", "phpunit/php-text-template": "^2.0.3", @@ -2924,7 +3021,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.6" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.10" }, "funding": [ { @@ -2936,7 +3033,7 @@ "type": "github" } ], - "time": "2021-06-23T05:14:38+00:00" + "time": "2021-09-25T07:38:51+00:00" }, { "name": "psr/cache", @@ -2989,22 +3086,27 @@ }, { "name": "psr/container", - "version": "1.1.1", + "version": "2.0.2", "source": { "type": "git", "url": "https://github.com/php-fig/container.git", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", "shasum": "" }, "require": { - "php": ">=7.2.0" + "php": ">=7.4.0" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, "autoload": { "psr-4": { "Psr\\Container\\": "src/" @@ -3031,9 +3133,9 @@ ], "support": { "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/1.1.1" + "source": "https://github.com/php-fig/container/tree/2.0.2" }, - "time": "2021-03-05T17:36:06+00:00" + "time": "2021-11-05T16:47:00+00:00" }, { "name": "psr/log", @@ -3087,28 +3189,28 @@ }, { "name": "roave/infection-static-analysis-plugin", - "version": "1.8.0", + "version": "1.12.0", "source": { "type": "git", "url": "https://github.com/Roave/infection-static-analysis-plugin.git", - "reference": "c1e5428a85ff24fa4ca75ac43f29c608d02379fe" + "reference": "8390a8ab36a4b73eef8ce3c270964c21e3c831b1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Roave/infection-static-analysis-plugin/zipball/c1e5428a85ff24fa4ca75ac43f29c608d02379fe", - "reference": "c1e5428a85ff24fa4ca75ac43f29c608d02379fe", + "url": "https://api.github.com/repos/Roave/infection-static-analysis-plugin/zipball/8390a8ab36a4b73eef8ce3c270964c21e3c831b1", + "reference": "8390a8ab36a4b73eef8ce3c270964c21e3c831b1", "shasum": "" }, "require": { - "infection/infection": "0.23.0", + "infection/infection": "0.25.3", "ocramius/package-versions": "^1.9.0 || ^2.0.0", - "php": "~7.4.7|~8.0.0", + "php": "~7.4.7|~8.0.0|~8.1.0", "sanmai/later": "^0.1.2", - "vimeo/psalm": "^4.7.2" + "vimeo/psalm": "^4.13.1" }, "require-dev": { "doctrine/coding-standard": "^9.0.0", - "phpunit/phpunit": "^9.5.4" + "phpunit/phpunit": "^9.5.9" }, "bin": [ "bin/roave-infection-static-analysis-plugin" @@ -3132,9 +3234,9 @@ "description": "Static analysis on top of mutation testing - prevents escaped mutants from being invalid according to static analysis", "support": { "issues": "https://github.com/Roave/infection-static-analysis-plugin/issues", - "source": "https://github.com/Roave/infection-static-analysis-plugin/tree/1.8.0" + "source": "https://github.com/Roave/infection-static-analysis-plugin/tree/1.12.0" }, - "time": "2021-05-13T19:12:14+00:00" + "time": "2021-11-30T01:18:25+00:00" }, { "name": "sanmai/later", @@ -3196,16 +3298,16 @@ }, { "name": "sanmai/pipeline", - "version": "v5.1.0", + "version": "v5.2.1", "source": { "type": "git", "url": "https://github.com/sanmai/pipeline.git", - "reference": "f935e10ddcb758c89829e7b69cfb1dc2b2638518" + "reference": "2b5509a7635143165041109eb1c393c8515724f1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sanmai/pipeline/zipball/f935e10ddcb758c89829e7b69cfb1dc2b2638518", - "reference": "f935e10ddcb758c89829e7b69cfb1dc2b2638518", + "url": "https://api.github.com/repos/sanmai/pipeline/zipball/2b5509a7635143165041109eb1c393c8515724f1", + "reference": "2b5509a7635143165041109eb1c393c8515724f1", "shasum": "" }, "require": { @@ -3213,14 +3315,14 @@ }, "require-dev": { "ergebnis/composer-normalize": "^2.8", - "friendsofphp/php-cs-fixer": "^2.16", + "friendsofphp/php-cs-fixer": "^3", "infection/infection": ">=0.10.5", "league/pipeline": "^1.0 || ^0.3", - "phan/phan": "^1.1 || ^2.0 || ^3.0", + "phan/phan": ">=1.1", "php-coveralls/php-coveralls": "^2.4.1", "phpstan/phpstan": ">=0.10", "phpunit/phpunit": "^7.4 || ^8.1 || ^9.4", - "vimeo/psalm": "^2.0 || ^3.0 || ^4.0" + "vimeo/psalm": ">=2" }, "type": "library", "extra": { @@ -3249,7 +3351,7 @@ "description": "General-purpose collections pipeline", "support": { "issues": "https://github.com/sanmai/pipeline/issues", - "source": "https://github.com/sanmai/pipeline/tree/v5.1.0" + "source": "https://github.com/sanmai/pipeline/tree/v5.2.1" }, "funding": [ { @@ -3257,7 +3359,7 @@ "type": "github" } ], - "time": "2020-10-25T15:20:56+00:00" + "time": "2021-11-01T10:09:55+00:00" }, { "name": "sebastian/cli-parser", @@ -3688,16 +3790,16 @@ }, { "name": "sebastian/exporter", - "version": "4.0.3", + "version": "4.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65" + "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/d89cc98761b8cb5a1a235a6b703ae50d34080e65", - "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/65e8b7db476c5dd267e65eea9cab77584d3cfff9", + "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9", "shasum": "" }, "require": { @@ -3746,14 +3848,14 @@ } ], "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "http://www.github.com/sebastianbergmann/exporter", + "homepage": "https://www.github.com/sebastianbergmann/exporter", "keywords": [ "export", "exporter" ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.3" + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.4" }, "funding": [ { @@ -3761,7 +3863,7 @@ "type": "github" } ], - "time": "2020-09-28T05:24:23+00:00" + "time": "2021-11-11T14:18:36+00:00" }, { "name": "sebastian/global-state", @@ -4288,32 +4390,32 @@ }, { "name": "slevomat/coding-standard", - "version": "7.0.12", + "version": "7.0.18", "source": { "type": "git", "url": "https://github.com/slevomat/coding-standard.git", - "reference": "5716052725863953ddc2f8a7e934c09cb64bdf73" + "reference": "b81ac84f41a4797dc25c8ede1b0718e2a74be0fc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/5716052725863953ddc2f8a7e934c09cb64bdf73", - "reference": "5716052725863953ddc2f8a7e934c09cb64bdf73", + "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/b81ac84f41a4797dc25c8ede1b0718e2a74be0fc", + "reference": "b81ac84f41a4797dc25c8ede1b0718e2a74be0fc", "shasum": "" }, "require": { "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7", "php": "^7.1 || ^8.0", - "phpstan/phpdoc-parser": "0.5.1 - 0.5.5", - "squizlabs/php_codesniffer": "^3.6.0" + "phpstan/phpdoc-parser": "^1.0.0", + "squizlabs/php_codesniffer": "^3.6.1" }, "require-dev": { - "phing/phing": "2.16.4", - "php-parallel-lint/php-parallel-lint": "1.3.0", - "phpstan/phpstan": "0.12.91", - "phpstan/phpstan-deprecation-rules": "0.12.6", - "phpstan/phpstan-phpunit": "0.12.20", - "phpstan/phpstan-strict-rules": "0.12.10", - "phpunit/phpunit": "7.5.20|8.5.5|9.5.6" + "phing/phing": "2.17.0", + "php-parallel-lint/php-parallel-lint": "1.3.1", + "phpstan/phpstan": "1.2.0", + "phpstan/phpstan-deprecation-rules": "1.0.0", + "phpstan/phpstan-phpunit": "1.0.0", + "phpstan/phpstan-strict-rules": "1.1.0", + "phpunit/phpunit": "7.5.20|8.5.21|9.5.10" }, "type": "phpcodesniffer-standard", "extra": { @@ -4333,7 +4435,7 @@ "description": "Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.", "support": { "issues": "https://github.com/slevomat/coding-standard/issues", - "source": "https://github.com/slevomat/coding-standard/tree/7.0.12" + "source": "https://github.com/slevomat/coding-standard/tree/7.0.18" }, "funding": [ { @@ -4345,20 +4447,20 @@ "type": "tidelift" } ], - "time": "2021-07-13T17:47:03+00:00" + "time": "2021-12-07T17:19:06+00:00" }, { "name": "squizlabs/php_codesniffer", - "version": "3.6.0", + "version": "3.6.2", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625" + "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ffced0d2c8fa8e6cdc4d695a743271fab6c38625", - "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/5e4e71592f69da17871dba6e80dd51bce74a351a", + "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a", "shasum": "" }, "require": { @@ -4401,39 +4503,39 @@ "source": "https://github.com/squizlabs/PHP_CodeSniffer", "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" }, - "time": "2021-04-09T00:54:41+00:00" + "time": "2021-12-12T21:44:58+00:00" }, { "name": "symfony/config", - "version": "v5.3.3", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "a69e0c55528b47df88d3c4067ddedf32d485d662" + "reference": "e39cf688c80fd79ab0a6a2d05a9facac9b2d534b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/a69e0c55528b47df88d3c4067ddedf32d485d662", - "reference": "a69e0c55528b47df88d3c4067ddedf32d485d662", + "url": "https://api.github.com/repos/symfony/config/zipball/e39cf688c80fd79ab0a6a2d05a9facac9b2d534b", + "reference": "e39cf688c80fd79ab0a6a2d05a9facac9b2d534b", "shasum": "" }, "require": { "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1", - "symfony/filesystem": "^4.4|^5.0", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/filesystem": "^4.4|^5.0|^6.0", "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-php80": "^1.15", + "symfony/polyfill-php80": "^1.16", "symfony/polyfill-php81": "^1.22" }, "conflict": { "symfony/finder": "<4.4" }, "require-dev": { - "symfony/event-dispatcher": "^4.4|^5.0", - "symfony/finder": "^4.4|^5.0", - "symfony/messenger": "^4.4|^5.0", - "symfony/service-contracts": "^1.1|^2", - "symfony/yaml": "^4.4|^5.0" + "symfony/event-dispatcher": "^4.4|^5.0|^6.0", + "symfony/finder": "^4.4|^5.0|^6.0", + "symfony/messenger": "^4.4|^5.0|^6.0", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/yaml": "^4.4|^5.0|^6.0" }, "suggest": { "symfony/yaml": "To use the yaml reference dumper" @@ -4464,7 +4566,7 @@ "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/config/tree/v5.3.3" + "source": "https://github.com/symfony/config/tree/v5.4.0" }, "funding": [ { @@ -4480,32 +4582,33 @@ "type": "tidelift" } ], - "time": "2021-06-24T08:13:00+00:00" + "time": "2021-11-28T15:25:38+00:00" }, { "name": "symfony/console", - "version": "v5.3.2", + "version": "v5.4.1", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "649730483885ff2ca99ca0560ef0e5f6b03f2ac1" + "reference": "9130e1a0fc93cb0faadca4ee917171bd2ca9e5f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/649730483885ff2ca99ca0560ef0e5f6b03f2ac1", - "reference": "649730483885ff2ca99ca0560ef0e5f6b03f2ac1", + "url": "https://api.github.com/repos/symfony/console/zipball/9130e1a0fc93cb0faadca4ee917171bd2ca9e5f4", + "reference": "9130e1a0fc93cb0faadca4ee917171bd2ca9e5f4", "shasum": "" }, "require": { "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1", + "symfony/deprecation-contracts": "^2.1|^3", "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php73": "^1.8", - "symfony/polyfill-php80": "^1.15", - "symfony/service-contracts": "^1.1|^2", - "symfony/string": "^5.1" + "symfony/polyfill-php73": "^1.9", + "symfony/polyfill-php80": "^1.16", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/string": "^5.1|^6.0" }, "conflict": { + "psr/log": ">=3", "symfony/dependency-injection": "<4.4", "symfony/dotenv": "<5.1", "symfony/event-dispatcher": "<4.4", @@ -4513,16 +4616,16 @@ "symfony/process": "<4.4" }, "provide": { - "psr/log-implementation": "1.0" + "psr/log-implementation": "1.0|2.0" }, "require-dev": { - "psr/log": "~1.0", - "symfony/config": "^4.4|^5.0", - "symfony/dependency-injection": "^4.4|^5.0", - "symfony/event-dispatcher": "^4.4|^5.0", - "symfony/lock": "^4.4|^5.0", - "symfony/process": "^4.4|^5.0", - "symfony/var-dumper": "^4.4|^5.0" + "psr/log": "^1|^2", + "symfony/config": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/event-dispatcher": "^4.4|^5.0|^6.0", + "symfony/lock": "^4.4|^5.0|^6.0", + "symfony/process": "^4.4|^5.0|^6.0", + "symfony/var-dumper": "^4.4|^5.0|^6.0" }, "suggest": { "psr/log": "For using the console logger", @@ -4562,7 +4665,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.3.2" + "source": "https://github.com/symfony/console/tree/v5.4.1" }, "funding": [ { @@ -4578,29 +4681,29 @@ "type": "tidelift" } ], - "time": "2021-06-12T09:42:48+00:00" + "time": "2021-12-09T11:22:43+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v2.4.0", + "version": "v3.0.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627" + "reference": "c726b64c1ccfe2896cb7df2e1331c357ad1c8ced" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5f38c8804a9e97d23e0c8d63341088cd8a22d627", - "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/c726b64c1ccfe2896cb7df2e1331c357ad1c8ced", + "reference": "c726b64c1ccfe2896cb7df2e1331c357ad1c8ced", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.0.2" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.4-dev" + "dev-main": "3.0-dev" }, "thanks": { "name": "symfony/contracts", @@ -4629,7 +4732,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.4.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.0" }, "funding": [ { @@ -4645,25 +4748,26 @@ "type": "tidelift" } ], - "time": "2021-03-23T23:28:01+00:00" + "time": "2021-11-01T23:48:49+00:00" }, { "name": "symfony/filesystem", - "version": "v4.4.26", + "version": "v4.4.27", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "a501126eb6ec9288a3434af01b3d4499ec1268a0" + "reference": "517fb795794faf29086a77d99eb8f35e457837a7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/a501126eb6ec9288a3434af01b3d4499ec1268a0", - "reference": "a501126eb6ec9288a3434af01b3d4499ec1268a0", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/517fb795794faf29086a77d99eb8f35e457837a7", + "reference": "517fb795794faf29086a77d99eb8f35e457837a7", "shasum": "" }, "require": { "php": ">=7.1.3", - "symfony/polyfill-ctype": "~1.8" + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-php80": "^1.16" }, "type": "library", "autoload": { @@ -4691,7 +4795,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v4.4.26" + "source": "https://github.com/symfony/filesystem/tree/v4.4.27" }, "funding": [ { @@ -4707,24 +4811,26 @@ "type": "tidelift" } ], - "time": "2021-06-30T07:12:23+00:00" + "time": "2021-07-21T12:19:41+00:00" }, { "name": "symfony/finder", - "version": "v5.3.0", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "0ae3f047bed4edff6fd35b26a9a6bfdc92c953c6" + "reference": "d2f29dac98e96a98be467627bd49c2efb1bc2590" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/0ae3f047bed4edff6fd35b26a9a6bfdc92c953c6", - "reference": "0ae3f047bed4edff6fd35b26a9a6bfdc92c953c6", + "url": "https://api.github.com/repos/symfony/finder/zipball/d2f29dac98e96a98be467627bd49c2efb1bc2590", + "reference": "d2f29dac98e96a98be467627bd49c2efb1bc2590", "shasum": "" }, "require": { - "php": ">=7.2.5" + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-php80": "^1.16" }, "type": "library", "autoload": { @@ -4752,7 +4858,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.3.0" + "source": "https://github.com/symfony/finder/tree/v5.4.0" }, "funding": [ { @@ -4768,27 +4874,27 @@ "type": "tidelift" } ], - "time": "2021-05-26T12:52:38+00:00" + "time": "2021-11-28T15:25:38+00:00" }, { "name": "symfony/options-resolver", - "version": "v5.3.0", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "162e886ca035869866d233a2bfef70cc28f9bbe5" + "reference": "b0fb78576487af19c500aaddb269fd36701d4847" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/162e886ca035869866d233a2bfef70cc28f9bbe5", - "reference": "162e886ca035869866d233a2bfef70cc28f9bbe5", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/b0fb78576487af19c500aaddb269fd36701d4847", + "reference": "b0fb78576487af19c500aaddb269fd36701d4847", "shasum": "" }, "require": { "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1", + "symfony/deprecation-contracts": "^2.1|^3", "symfony/polyfill-php73": "~1.0", - "symfony/polyfill-php80": "^1.15" + "symfony/polyfill-php80": "^1.16" }, "type": "library", "autoload": { @@ -4821,7 +4927,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v5.3.0" + "source": "https://github.com/symfony/options-resolver/tree/v5.4.0" }, "funding": [ { @@ -4837,7 +4943,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:43:10+00:00" + "time": "2021-11-23T10:19:22+00:00" }, { "name": "symfony/polyfill-ctype", @@ -4920,16 +5026,16 @@ }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.23.0", + "version": "v1.23.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "24b72c6baa32c746a4d0840147c9715e42bb68ab" + "reference": "16880ba9c5ebe3642d1995ab866db29270b36535" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/24b72c6baa32c746a4d0840147c9715e42bb68ab", - "reference": "24b72c6baa32c746a4d0840147c9715e42bb68ab", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/16880ba9c5ebe3642d1995ab866db29270b36535", + "reference": "16880ba9c5ebe3642d1995ab866db29270b36535", "shasum": "" }, "require": { @@ -4981,7 +5087,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.23.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.23.1" }, "funding": [ { @@ -4997,7 +5103,7 @@ "type": "tidelift" } ], - "time": "2021-05-27T09:17:38+00:00" + "time": "2021-05-27T12:26:48+00:00" }, { "name": "symfony/polyfill-intl-normalizer", @@ -5085,16 +5191,16 @@ }, { "name": "symfony/polyfill-mbstring", - "version": "v1.23.0", + "version": "v1.23.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "2df51500adbaebdc4c38dea4c89a2e131c45c8a1" + "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2df51500adbaebdc4c38dea4c89a2e131c45c8a1", - "reference": "2df51500adbaebdc4c38dea4c89a2e131c45c8a1", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9174a3d80210dca8daa7f31fec659150bbeabfc6", + "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6", "shasum": "" }, "require": { @@ -5145,7 +5251,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.1" }, "funding": [ { @@ -5161,7 +5267,7 @@ "type": "tidelift" } ], - "time": "2021-05-27T09:27:20+00:00" + "time": "2021-05-27T12:26:48+00:00" }, { "name": "symfony/polyfill-php73", @@ -5244,16 +5350,16 @@ }, { "name": "symfony/polyfill-php80", - "version": "v1.23.0", + "version": "v1.23.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "eca0bf41ed421bed1b57c4958bab16aa86b757d0" + "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/eca0bf41ed421bed1b57c4958bab16aa86b757d0", - "reference": "eca0bf41ed421bed1b57c4958bab16aa86b757d0", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be", + "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be", "shasum": "" }, "require": { @@ -5307,7 +5413,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.1" }, "funding": [ { @@ -5323,7 +5429,7 @@ "type": "tidelift" } ], - "time": "2021-02-19T12:13:01+00:00" + "time": "2021-07-28T13:41:28+00:00" }, { "name": "symfony/polyfill-php81", @@ -5406,21 +5512,21 @@ }, { "name": "symfony/process", - "version": "v5.3.2", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "714b47f9196de61a196d86c4bad5f09201b307df" + "reference": "5be20b3830f726e019162b26223110c8f47cf274" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/714b47f9196de61a196d86c4bad5f09201b307df", - "reference": "714b47f9196de61a196d86c4bad5f09201b307df", + "url": "https://api.github.com/repos/symfony/process/zipball/5be20b3830f726e019162b26223110c8f47cf274", + "reference": "5be20b3830f726e019162b26223110c8f47cf274", "shasum": "" }, "require": { "php": ">=7.2.5", - "symfony/polyfill-php80": "^1.15" + "symfony/polyfill-php80": "^1.16" }, "type": "library", "autoload": { @@ -5448,7 +5554,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v5.3.2" + "source": "https://github.com/symfony/process/tree/v5.4.0" }, "funding": [ { @@ -5464,25 +5570,28 @@ "type": "tidelift" } ], - "time": "2021-06-12T10:15:01+00:00" + "time": "2021-11-28T15:25:38+00:00" }, { "name": "symfony/service-contracts", - "version": "v2.4.0", + "version": "v3.0.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb" + "reference": "36715ebf9fb9db73db0cb24263c79077c6fe8603" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb", - "reference": "f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/36715ebf9fb9db73db0cb24263c79077c6fe8603", + "reference": "36715ebf9fb9db73db0cb24263c79077c6fe8603", "shasum": "" }, "require": { - "php": ">=7.2.5", - "psr/container": "^1.1" + "php": ">=8.0.2", + "psr/container": "^2.0" + }, + "conflict": { + "ext-psr": "<1.1|>=2" }, "suggest": { "symfony/service-implementation": "" @@ -5490,7 +5599,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "2.4-dev" + "dev-main": "3.0-dev" }, "thanks": { "name": "symfony/contracts", @@ -5527,7 +5636,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v2.4.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.0.0" }, "funding": [ { @@ -5543,35 +5652,37 @@ "type": "tidelift" } ], - "time": "2021-04-01T10:43:52+00:00" + "time": "2021-11-04T17:53:12+00:00" }, { "name": "symfony/string", - "version": "v5.3.3", + "version": "v6.0.1", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1" + "reference": "0cfed595758ec6e0a25591bdc8ca733c1896af32" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1", - "reference": "bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1", + "url": "https://api.github.com/repos/symfony/string/zipball/0cfed595758ec6e0a25591bdc8ca733c1896af32", + "reference": "0cfed595758ec6e0a25591bdc8ca733c1896af32", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.0.2", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-intl-grapheme": "~1.0", "symfony/polyfill-intl-normalizer": "~1.0", - "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php80": "~1.15" + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/translation-contracts": "<2.0" }, "require-dev": { - "symfony/error-handler": "^4.4|^5.0", - "symfony/http-client": "^4.4|^5.0", - "symfony/translation-contracts": "^1.1|^2", - "symfony/var-exporter": "^4.4|^5.0" + "symfony/error-handler": "^5.4|^6.0", + "symfony/http-client": "^5.4|^6.0", + "symfony/translation-contracts": "^2.0|^3.0", + "symfony/var-exporter": "^5.4|^6.0" }, "type": "library", "autoload": { @@ -5610,7 +5721,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v5.3.3" + "source": "https://github.com/symfony/string/tree/v6.0.1" }, "funding": [ { @@ -5626,7 +5737,7 @@ "type": "tidelift" } ], - "time": "2021-06-27T11:44:38+00:00" + "time": "2021-12-08T15:13:44+00:00" }, { "name": "thecodingmachine/safe", @@ -5769,16 +5880,16 @@ }, { "name": "theseer/tokenizer", - "version": "1.2.0", + "version": "1.2.1", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "75a63c33a8577608444246075ea0af0d052e452a" + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/75a63c33a8577608444246075ea0af0d052e452a", - "reference": "75a63c33a8577608444246075ea0af0d052e452a", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", "shasum": "" }, "require": { @@ -5807,7 +5918,7 @@ "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "support": { "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/master" + "source": "https://github.com/theseer/tokenizer/tree/1.2.1" }, "funding": [ { @@ -5815,20 +5926,20 @@ "type": "github" } ], - "time": "2020-07-12T23:59:07+00:00" + "time": "2021-07-28T10:34:58+00:00" }, { "name": "twig/twig", - "version": "v2.14.6", + "version": "v2.14.8", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "27e5cf2b05e3744accf39d4c68a3235d9966d260" + "reference": "06b450a2326aa879faa2061ff72fe1588b3ab043" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/27e5cf2b05e3744accf39d4c68a3235d9966d260", - "reference": "27e5cf2b05e3744accf39d4c68a3235d9966d260", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/06b450a2326aa879faa2061ff72fe1588b3ab043", + "reference": "06b450a2326aa879faa2061ff72fe1588b3ab043", "shasum": "" }, "require": { @@ -5838,7 +5949,7 @@ }, "require-dev": { "psr/container": "^1.0", - "symfony/phpunit-bridge": "^4.4.9|^5.0.9" + "symfony/phpunit-bridge": "^4.4.9|^5.0.9|^6.0" }, "type": "library", "extra": { @@ -5882,7 +5993,7 @@ ], "support": { "issues": "https://github.com/twigphp/Twig/issues", - "source": "https://github.com/twigphp/Twig/tree/v2.14.6" + "source": "https://github.com/twigphp/Twig/tree/v2.14.8" }, "funding": [ { @@ -5894,20 +6005,20 @@ "type": "tidelift" } ], - "time": "2021-05-16T12:12:47+00:00" + "time": "2021-11-25T13:38:06+00:00" }, { "name": "vimeo/psalm", - "version": "4.8.1", + "version": "v4.15.0", "source": { "type": "git", "url": "https://github.com/vimeo/psalm.git", - "reference": "f73f2299dbc59a3e6c4d66cff4605176e728ee69" + "reference": "a1b5e489e6fcebe40cb804793d964e99fc347820" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vimeo/psalm/zipball/f73f2299dbc59a3e6c4d66cff4605176e728ee69", - "reference": "f73f2299dbc59a3e6c4d66cff4605176e728ee69", + "url": "https://api.github.com/repos/vimeo/psalm/zipball/a1b5e489e6fcebe40cb804793d964e99fc347820", + "reference": "a1b5e489e6fcebe40cb804793d964e99fc347820", "shasum": "" }, "require": { @@ -5917,6 +6028,7 @@ "composer/semver": "^1.4 || ^2.0 || ^3.0", "composer/xdebug-handler": "^1.1 || ^2.0", "dnoegel/php-xdg-base-dir": "^0.1.1", + "ext-ctype": "*", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", @@ -5926,11 +6038,11 @@ "felixfbecker/advanced-json-rpc": "^3.0.3", "felixfbecker/language-server-protocol": "^1.5", "netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0", - "nikic/php-parser": "^4.10.5", + "nikic/php-parser": "^4.13", "openlss/lib-array2xml": "^1.0", "php": "^7.1|^8", "sebastian/diff": "^3.0 || ^4.0", - "symfony/console": "^3.4.17 || ^4.1.6 || ^5.0", + "symfony/console": "^3.4.17 || ^4.1.6 || ^5.0 || ^6.0", "webmozart/path-util": "^2.3" }, "provide": { @@ -5948,12 +6060,12 @@ "psalm/plugin-phpunit": "^0.16", "slevomat/coding-standard": "^7.0", "squizlabs/php_codesniffer": "^3.5", - "symfony/process": "^4.3 || ^5.0", - "weirdan/phpunit-appveyor-reporter": "^1.0.0", + "symfony/process": "^4.3 || ^5.0 || ^6.0", "weirdan/prophecy-shim": "^1.0 || ^2.0" }, "suggest": { - "ext-igbinary": "^2.0.5" + "ext-curl": "In order to send data to shepherd", + "ext-igbinary": "^2.0.5 is required, used to serialize caching data" }, "bin": [ "psalm", @@ -5997,9 +6109,9 @@ ], "support": { "issues": "https://github.com/vimeo/psalm/issues", - "source": "https://github.com/vimeo/psalm/tree/4.8.1" + "source": "https://github.com/vimeo/psalm/tree/v4.15.0" }, - "time": "2021-06-20T23:03:20+00:00" + "time": "2021-12-07T11:25:29+00:00" }, { "name": "webmozart/assert", @@ -6107,6 +6219,7 @@ "issues": "https://github.com/webmozart/path-util/issues", "source": "https://github.com/webmozart/path-util/tree/2.3.0" }, + "abandoned": "symfony/filesystem", "time": "2015-12-17T08:42:14+00:00" } ], @@ -6116,7 +6229,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "~8.0.0", + "php": ">=8.0.0", "composer-runtime-api": "^2.1.0" }, "platform-dev": { From 470df17d8e561c16022feda330771ce236489edc Mon Sep 17 00:00:00 2001 From: Petr Buchyn Date: Mon, 12 Apr 2021 23:46:34 +0300 Subject: [PATCH 09/19] Support for non-nullable typed properties when using AccessInterceptorScopeLocalizer proxy --- .../MethodGenerator/BindProxyProperties.php | 42 +-- .../MethodGenerator/BindProxyProperty.php | 65 ++++ ...cessInterceptorScopeLocalizerGenerator.php | 2 + ...nterceptorScopeLocalizerFunctionalTest.php | 25 +- .../BindProxyPropertiesTest.php | 286 ++++++------------ .../AccessInterceptorScopeLocalizerTest.php | 4 - .../ClassWithNonNullableTypedProperties.php | 29 ++ 7 files changed, 221 insertions(+), 232 deletions(-) create mode 100644 src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperty.php create mode 100644 tests/ProxyManagerTestAsset/ClassWithNonNullableTypedProperties.php diff --git a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperties.php b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperties.php index b307e56e4..a39aaaf45 100644 --- a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperties.php +++ b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperties.php @@ -6,13 +6,14 @@ use Laminas\Code\Generator\ParameterGenerator; use Laminas\Code\Generator\PropertyGenerator; -use ProxyManager\Exception\UnsupportedProxiedClassException; use ProxyManager\Generator\MethodGenerator; use ProxyManager\ProxyGenerator\Util\Properties; use ReflectionClass; use function implode; -use function var_export; +use function sprintf; + +use const PHP_EOL; /** * The `bindProxyProperties` method implementation for access interceptor scope localizers @@ -42,38 +43,19 @@ public function __construct( . '@param \\Closure[] $suffixInterceptors method interceptors to be used before method logic' ); - $localizedProperties = []; - $properties = Properties::fromReflectionClass($originalClass); - $nonReferenceableProperties = $properties - ->onlyNonReferenceableProperties() - ->onlyInstanceProperties(); + $properties = Properties::fromReflectionClass($originalClass); - if (! $nonReferenceableProperties->empty()) { - throw UnsupportedProxiedClassException::nonReferenceableLocalizedReflectionProperties( - $originalClass, - $nonReferenceableProperties + $bodyLines = ['$class = new \ReflectionObject($localizedObject);']; + foreach ($properties->getInstanceProperties() as $property) { + $bodyLines[] = sprintf( + '$this->bindProxyProperty($localizedObject, $class, \'%s\');', + $property->getName() ); } - foreach ($properties->getAccessibleProperties() as $property) { - $propertyName = $property->getName(); - - $localizedProperties[] = '$this->' . $propertyName . ' = & $localizedObject->' . $propertyName . ';'; - } - - foreach ($properties->getPrivateProperties() as $property) { - $propertyName = $property->getName(); + $bodyLines[] = sprintf('$this->%s = $prefixInterceptors;', $prefixInterceptors->getName()); + $bodyLines[] = sprintf('$this->%s = $suffixInterceptors;', $suffixInterceptors->getName()); - $localizedProperties[] = "\\Closure::bind(function () use (\$localizedObject) {\n " - . '$this->' . $propertyName . ' = & $localizedObject->' . $propertyName . ";\n" - . '}, $this, ' . var_export($property->getDeclaringClass()->getName(), true) - . ')->__invoke();'; - } - - $this->setBody( - ($localizedProperties ? implode("\n\n", $localizedProperties) . "\n\n" : '') - . '$this->' . $prefixInterceptors->getName() . " = \$prefixInterceptors;\n" - . '$this->' . $suffixInterceptors->getName() . ' = $suffixInterceptors;' - ); + $this->setBody(implode(PHP_EOL, $bodyLines)); } } diff --git a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperty.php b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperty.php new file mode 100644 index 000000000..11480fe03 --- /dev/null +++ b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperty.php @@ -0,0 +1,65 @@ +getName()), + new ParameterGenerator('class', ReflectionClass::class), + new ParameterGenerator('propertyName', 'string'), + ], + self::FLAG_PRIVATE + ); + + $bodyTemplate = <<<'CODE' + $originalClass = $class; + while (! $class->hasProperty($propertyName)) { + $class = $class->getParentClass(); + } + $property = $class->getProperty($propertyName); + $property->setAccessible(true); + if (!$property->isInitialized($localizedObject)) { + throw new \{ EXCEPTION_CLASS }( + sprintf( + 'Cannot create reference for property $%s of class %s: property must be initialized', + $property->getName(), + $originalClass->getName() + ) + ); + } + if (!$property->isPrivate()) { + $this->{$propertyName} = & $localizedObject->{$propertyName}; + return; + } + + \Closure::bind( + function () use ($localizedObject, $propertyName) { + $this->{$propertyName} = & $localizedObject->{$propertyName}; + }, + $this, + $property->getDeclaringClass()->getName() + )->__invoke(); + CODE; + + $this->setBody( + strtr( + $bodyTemplate, + ['{ EXCEPTION_CLASS }' => UnsupportedProxiedClassException::class] + ) + ); + } +} diff --git a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizerGenerator.php b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizerGenerator.php index 38e42d680..d716985f1 100644 --- a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizerGenerator.php +++ b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizerGenerator.php @@ -16,6 +16,7 @@ use ProxyManager\ProxyGenerator\AccessInterceptor\PropertyGenerator\MethodPrefixInterceptors; use ProxyManager\ProxyGenerator\AccessInterceptor\PropertyGenerator\MethodSuffixInterceptors; use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\BindProxyProperties; +use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\BindProxyProperty; use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\InterceptedMethod; use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\MagicClone; use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\MagicGet; @@ -71,6 +72,7 @@ static function (MethodGenerator $generatedMethod) use ($originalClass, $classGe ), [ new StaticProxyConstructor($originalClass), + new BindProxyProperty($originalClass), new BindProxyProperties($originalClass, $prefixInterceptors, $suffixInterceptors), new SetMethodPrefixInterceptor($prefixInterceptors), new SetMethodSuffixInterceptor($suffixInterceptors), diff --git a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php index 7eefe2f76..40aa797f6 100644 --- a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php +++ b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php @@ -18,6 +18,7 @@ use ProxyManagerTestAsset\ClassWithDynamicArgumentsMethod; use ProxyManagerTestAsset\ClassWithMethodWithByRefVariadicFunction; use ProxyManagerTestAsset\ClassWithMethodWithVariadicFunction; +use ProxyManagerTestAsset\ClassWithNonNullableTypedProperties; use ProxyManagerTestAsset\ClassWithParentHint; use ProxyManagerTestAsset\ClassWithPublicArrayPropertyAccessibleViaMethod; use ProxyManagerTestAsset\ClassWithPublicProperties; @@ -26,6 +27,7 @@ use ProxyManagerTestAsset\EmptyClass; use ProxyManagerTestAsset\VoidCounter; use ReflectionClass; +use ReflectionObject; use stdClass; use function array_values; @@ -239,6 +241,12 @@ public function testPropertyExistence(object $instance, AccessInterceptorInterfa self::assertSame(isset($instance->$publicProperty), isset($proxy->$publicProperty)); $this->assertProxySynchronized($instance, $proxy); + $class = new ReflectionObject($instance); + $property = $class->getProperty($publicProperty); + if ($property->getType() && ! $property->getType()->allowsNull()) { + return; + } + $instance->$publicProperty = null; self::assertFalse(isset($proxy->$publicProperty)); $this->assertProxySynchronized($instance, $proxy); @@ -396,15 +404,26 @@ public static function getProxyMethods(): array */ public function getPropertyAccessProxies(): array { - $instance = new BaseClass(); + $baseClassInstance = new BaseClass(); + $classWithNonNullablePropertiesInstance = new ClassWithNonNullableTypedProperties( + 'privatePropertyValue', + 'protectedPropertyValue', + 'publicPropertyValue' + ); return [ [ - $instance, - (new AccessInterceptorScopeLocalizerFactory())->createProxy($instance), + $baseClassInstance, + (new AccessInterceptorScopeLocalizerFactory())->createProxy($baseClassInstance), 'publicProperty', 'publicPropertyDefault', ], + [ + $classWithNonNullablePropertiesInstance, + (new AccessInterceptorScopeLocalizerFactory())->createProxy($classWithNonNullablePropertiesInstance), + 'publicProperty', + 'publicPropertyValue', + ], ]; } diff --git a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php index 4623a8662..46624d055 100644 --- a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php +++ b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php @@ -68,31 +68,19 @@ public function testBodyStructure(): void $this->suffixInterceptors ); - $expectedCode = <<<'PHP' -$this->publicProperty0 = & $localizedObject->publicProperty0; - -$this->publicProperty1 = & $localizedObject->publicProperty1; - -$this->publicProperty2 = & $localizedObject->publicProperty2; - -$this->protectedProperty0 = & $localizedObject->protectedProperty0; - -$this->protectedProperty1 = & $localizedObject->protectedProperty1; - -$this->protectedProperty2 = & $localizedObject->protectedProperty2; - -\Closure::bind(function () use ($localizedObject) { - $this->privateProperty0 = & $localizedObject->privateProperty0; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateProperty1 = & $localizedObject->privateProperty1; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateProperty2 = & $localizedObject->privateProperty2; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedProperties')->__invoke(); + $expectedCode = + $expectedCode = <<<'PHP' +$class = new \ReflectionObject($localizedObject); +$this->bindProxyProperty($localizedObject, $class, 'publicProperty0'); +$this->bindProxyProperty($localizedObject, $class, 'publicProperty1'); +$this->bindProxyProperty($localizedObject, $class, 'publicProperty2'); +$this->bindProxyProperty($localizedObject, $class, 'protectedProperty0'); +$this->bindProxyProperty($localizedObject, $class, 'protectedProperty1'); +$this->bindProxyProperty($localizedObject, $class, 'protectedProperty2'); +$this->bindProxyProperty($localizedObject, $class, 'privateProperty0'); +$this->bindProxyProperty($localizedObject, $class, 'privateProperty1'); +$this->bindProxyProperty($localizedObject, $class, 'privateProperty2'); $this->pre = $prefixInterceptors; $this->post = $suffixInterceptors; PHP; @@ -108,29 +96,24 @@ public function testBodyStructureWithProtectedProperties(): void $this->suffixInterceptors ); - self::assertSame( - '$this->property0 = & $localizedObject->property0; - -$this->property1 = & $localizedObject->property1; - -$this->property2 = & $localizedObject->property2; - -$this->property3 = & $localizedObject->property3; - -$this->property4 = & $localizedObject->property4; - -$this->property5 = & $localizedObject->property5; - -$this->property6 = & $localizedObject->property6; - -$this->property7 = & $localizedObject->property7; - -$this->property8 = & $localizedObject->property8; - -$this->property9 = & $localizedObject->property9; - + $expectedCode = <<<'PHP' +$class = new \ReflectionObject($localizedObject); +$this->bindProxyProperty($localizedObject, $class, 'property0'); +$this->bindProxyProperty($localizedObject, $class, 'property1'); +$this->bindProxyProperty($localizedObject, $class, 'property2'); +$this->bindProxyProperty($localizedObject, $class, 'property3'); +$this->bindProxyProperty($localizedObject, $class, 'property4'); +$this->bindProxyProperty($localizedObject, $class, 'property5'); +$this->bindProxyProperty($localizedObject, $class, 'property6'); +$this->bindProxyProperty($localizedObject, $class, 'property7'); +$this->bindProxyProperty($localizedObject, $class, 'property8'); +$this->bindProxyProperty($localizedObject, $class, 'property9'); $this->pre = $prefixInterceptors; -$this->post = $suffixInterceptors;', +$this->post = $suffixInterceptors; +PHP; + + self::assertSame( + $expectedCode, $method->getBody() ); } @@ -143,49 +126,25 @@ public function testBodyStructureWithPrivateProperties(): void $this->suffixInterceptors ); - self::assertSame( - '\Closure::bind(function () use ($localizedObject) { - $this->property0 = & $localizedObject->property0; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->property1 = & $localizedObject->property1; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->property2 = & $localizedObject->property2; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->property3 = & $localizedObject->property3; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->property4 = & $localizedObject->property4; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->property5 = & $localizedObject->property5; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->property6 = & $localizedObject->property6; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->property7 = & $localizedObject->property7; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->property8 = & $localizedObject->property8; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); + $expectedCode = <<<'PHP' +$class = new \ReflectionObject($localizedObject); +$this->bindProxyProperty($localizedObject, $class, 'property0'); +$this->bindProxyProperty($localizedObject, $class, 'property1'); +$this->bindProxyProperty($localizedObject, $class, 'property2'); +$this->bindProxyProperty($localizedObject, $class, 'property3'); +$this->bindProxyProperty($localizedObject, $class, 'property4'); +$this->bindProxyProperty($localizedObject, $class, 'property5'); +$this->bindProxyProperty($localizedObject, $class, 'property6'); +$this->bindProxyProperty($localizedObject, $class, 'property7'); +$this->bindProxyProperty($localizedObject, $class, 'property8'); +$this->bindProxyProperty($localizedObject, $class, 'property9'); +$this->pre = $prefixInterceptors; +$this->post = $suffixInterceptors; +PHP; -\Closure::bind(function () use ($localizedObject) { - $this->property9 = & $localizedObject->property9; -}, $this, \'ProxyManagerTestAsset\\\\ClassWithPrivateProperties\')->__invoke(); -$this->pre = $prefixInterceptors; -$this->post = $suffixInterceptors;', + self::assertSame( + $expectedCode, $method->getBody() ); } @@ -198,116 +157,53 @@ public function testBodyStructureWithTypedProperties(): void $this->suffixInterceptors ); - self::assertSame( - <<<'PHP' -$this->publicUnTypedProperty = & $localizedObject->publicUnTypedProperty; - -$this->publicBoolProperty = & $localizedObject->publicBoolProperty; - -$this->publicNullableBoolProperty = & $localizedObject->publicNullableBoolProperty; - -$this->publicIntProperty = & $localizedObject->publicIntProperty; - -$this->publicNullableIntProperty = & $localizedObject->publicNullableIntProperty; - -$this->publicFloatProperty = & $localizedObject->publicFloatProperty; - -$this->publicNullableFloatProperty = & $localizedObject->publicNullableFloatProperty; - -$this->publicStringProperty = & $localizedObject->publicStringProperty; - -$this->publicNullableStringProperty = & $localizedObject->publicNullableStringProperty; - -$this->publicArrayProperty = & $localizedObject->publicArrayProperty; - -$this->publicNullableArrayProperty = & $localizedObject->publicNullableArrayProperty; - -$this->publicIterableProperty = & $localizedObject->publicIterableProperty; - -$this->publicNullableIterableProperty = & $localizedObject->publicNullableIterableProperty; - -$this->protectedUnTypedProperty = & $localizedObject->protectedUnTypedProperty; - -$this->protectedBoolProperty = & $localizedObject->protectedBoolProperty; - -$this->protectedNullableBoolProperty = & $localizedObject->protectedNullableBoolProperty; - -$this->protectedIntProperty = & $localizedObject->protectedIntProperty; - -$this->protectedNullableIntProperty = & $localizedObject->protectedNullableIntProperty; - -$this->protectedFloatProperty = & $localizedObject->protectedFloatProperty; - -$this->protectedNullableFloatProperty = & $localizedObject->protectedNullableFloatProperty; - -$this->protectedStringProperty = & $localizedObject->protectedStringProperty; - -$this->protectedNullableStringProperty = & $localizedObject->protectedNullableStringProperty; - -$this->protectedArrayProperty = & $localizedObject->protectedArrayProperty; - -$this->protectedNullableArrayProperty = & $localizedObject->protectedNullableArrayProperty; - -$this->protectedIterableProperty = & $localizedObject->protectedIterableProperty; - -$this->protectedNullableIterableProperty = & $localizedObject->protectedNullableIterableProperty; - -\Closure::bind(function () use ($localizedObject) { - $this->privateUnTypedProperty = & $localizedObject->privateUnTypedProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateBoolProperty = & $localizedObject->privateBoolProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateNullableBoolProperty = & $localizedObject->privateNullableBoolProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateIntProperty = & $localizedObject->privateIntProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateNullableIntProperty = & $localizedObject->privateNullableIntProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateFloatProperty = & $localizedObject->privateFloatProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateNullableFloatProperty = & $localizedObject->privateNullableFloatProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateStringProperty = & $localizedObject->privateStringProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateNullableStringProperty = & $localizedObject->privateNullableStringProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateArrayProperty = & $localizedObject->privateArrayProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateNullableArrayProperty = & $localizedObject->privateNullableArrayProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateIterableProperty = & $localizedObject->privateIterableProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - -\Closure::bind(function () use ($localizedObject) { - $this->privateNullableIterableProperty = & $localizedObject->privateNullableIterableProperty; -}, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); - + $expectedCode = <<<'PHP' +$class = new \ReflectionObject($localizedObject); +$this->bindProxyProperty($localizedObject, $class, 'publicUnTypedProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicBoolProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicNullableBoolProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicIntProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicNullableIntProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicFloatProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicNullableFloatProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicStringProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicNullableStringProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicArrayProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicNullableArrayProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicIterableProperty'); +$this->bindProxyProperty($localizedObject, $class, 'publicNullableIterableProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedUnTypedProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedBoolProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedNullableBoolProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedIntProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedNullableIntProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedFloatProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedNullableFloatProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedStringProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedNullableStringProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedArrayProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedNullableArrayProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedIterableProperty'); +$this->bindProxyProperty($localizedObject, $class, 'protectedNullableIterableProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateUnTypedProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateBoolProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateNullableBoolProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateIntProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateNullableIntProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateFloatProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateNullableFloatProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateStringProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateNullableStringProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateArrayProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateNullableArrayProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateIterableProperty'); +$this->bindProxyProperty($localizedObject, $class, 'privateNullableIterableProperty'); $this->pre = $prefixInterceptors; $this->post = $suffixInterceptors; -PHP - , +PHP; + + self::assertSame( + $expectedCode, $method->getBody() ); } diff --git a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizerTest.php b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizerTest.php index c0487b374..519cd9a7e 100644 --- a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizerTest.php +++ b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizerTest.php @@ -36,10 +36,6 @@ public function testGeneratesValidCode(string $className): void $this->expectException(InvalidProxiedClassException::class); } - if ($reflectionClass->getName() === ClassWithMixedTypedProperties::class) { - $this->expectException(UnsupportedProxiedClassException::class); - } - parent::testGeneratesValidCode($className); } diff --git a/tests/ProxyManagerTestAsset/ClassWithNonNullableTypedProperties.php b/tests/ProxyManagerTestAsset/ClassWithNonNullableTypedProperties.php new file mode 100644 index 000000000..bd51753aa --- /dev/null +++ b/tests/ProxyManagerTestAsset/ClassWithNonNullableTypedProperties.php @@ -0,0 +1,29 @@ +privateProperty = $privateProperty; + $this->protectedProperty = $protectedProperty; + $this->publicProperty = $publicProperty; + } + + public function getPrivateProperty(): string + { + return $this->privateProperty; + } + + public function getProtectedProperty(): string + { + return $this->protectedProperty; + } +} From f6da53203c84f142852b387e1cf3374b11fafd6b Mon Sep 17 00:00:00 2001 From: Petr Buchyn Date: Tue, 13 Apr 2021 00:04:16 +0300 Subject: [PATCH 10/19] CS fix --- .../MethodGenerator/BindProxyPropertiesTest.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php index 46624d055..6ca18d8a6 100644 --- a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php +++ b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php @@ -68,8 +68,6 @@ public function testBodyStructure(): void $this->suffixInterceptors ); - $expectedCode = - $expectedCode = <<<'PHP' $class = new \ReflectionObject($localizedObject); $this->bindProxyProperty($localizedObject, $class, 'publicProperty0'); @@ -142,7 +140,6 @@ public function testBodyStructureWithPrivateProperties(): void $this->post = $suffixInterceptors; PHP; - self::assertSame( $expectedCode, $method->getBody() From d667f906fa7fbf89ba099d581f37efd8564ba028 Mon Sep 17 00:00:00 2001 From: Petr Buchyn Date: Tue, 13 Apr 2021 00:08:37 +0300 Subject: [PATCH 11/19] Fix code due to Psalm error --- .../AccessInterceptorScopeLocalizerFunctionalTest.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php index 40aa797f6..c33a541fe 100644 --- a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php +++ b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php @@ -28,6 +28,7 @@ use ProxyManagerTestAsset\VoidCounter; use ReflectionClass; use ReflectionObject; +use ReflectionType; use stdClass; use function array_values; @@ -243,7 +244,8 @@ public function testPropertyExistence(object $instance, AccessInterceptorInterfa $class = new ReflectionObject($instance); $property = $class->getProperty($publicProperty); - if ($property->getType() && ! $property->getType()->allowsNull()) { + $propertyType = $property->getType(); + if ($propertyType instanceof ReflectionType && ! $propertyType->allowsNull()) { return; } From 063d8de1659471dab3c6174a106a48257a48c82e Mon Sep 17 00:00:00 2001 From: Petr Buchyn Date: Tue, 13 Apr 2021 00:19:45 +0300 Subject: [PATCH 12/19] CS fix --- .../AccessInterceptorScopeLocalizerFunctionalTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php index c33a541fe..f2ff62a2b 100644 --- a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php +++ b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php @@ -242,8 +242,8 @@ public function testPropertyExistence(object $instance, AccessInterceptorInterfa self::assertSame(isset($instance->$publicProperty), isset($proxy->$publicProperty)); $this->assertProxySynchronized($instance, $proxy); - $class = new ReflectionObject($instance); - $property = $class->getProperty($publicProperty); + $class = new ReflectionObject($instance); + $property = $class->getProperty($publicProperty); $propertyType = $property->getType(); if ($propertyType instanceof ReflectionType && ! $propertyType->allowsNull()) { return; From fbc7965cc354ac4dba93751e1da1ef098fa1a509 Mon Sep 17 00:00:00 2001 From: Petr Buchyn Date: Tue, 13 Apr 2021 00:31:51 +0300 Subject: [PATCH 13/19] Add ClassWithNonNullableTypedProperties for method tests --- ...nterceptorScopeLocalizerFunctionalTest.php | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php index f2ff62a2b..ff2cd76b4 100644 --- a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php +++ b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php @@ -396,6 +396,26 @@ public static function getProxyMethods(): array ['parameter' => $empty], $empty, ], + [ + new ClassWithNonNullableTypedProperties( + 'privatePropertyValue', + 'protectedPropertyValue', + 'prublicPropertyValue' + ), + 'getPrivateProperty', + [], + 'privatePropertyValue', + ], + [ + new ClassWithNonNullableTypedProperties( + 'privatePropertyValue', + 'protectedPropertyValue', + 'prublicPropertyValue' + ), + 'getProtectedProperty', + [], + 'protectedPropertyValue', + ], ]; } From 113f45f75203f40ec451ef2c08422f1ac3bfc414 Mon Sep 17 00:00:00 2001 From: Petr Buchyn Date: Tue, 13 Apr 2021 23:43:58 +0300 Subject: [PATCH 14/19] Fixes due to PR review --- .../MethodGenerator/BindProxyProperty.php | 65 ------------------- 1 file changed, 65 deletions(-) delete mode 100644 src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperty.php diff --git a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperty.php b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperty.php deleted file mode 100644 index 11480fe03..000000000 --- a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperty.php +++ /dev/null @@ -1,65 +0,0 @@ -getName()), - new ParameterGenerator('class', ReflectionClass::class), - new ParameterGenerator('propertyName', 'string'), - ], - self::FLAG_PRIVATE - ); - - $bodyTemplate = <<<'CODE' - $originalClass = $class; - while (! $class->hasProperty($propertyName)) { - $class = $class->getParentClass(); - } - $property = $class->getProperty($propertyName); - $property->setAccessible(true); - if (!$property->isInitialized($localizedObject)) { - throw new \{ EXCEPTION_CLASS }( - sprintf( - 'Cannot create reference for property $%s of class %s: property must be initialized', - $property->getName(), - $originalClass->getName() - ) - ); - } - if (!$property->isPrivate()) { - $this->{$propertyName} = & $localizedObject->{$propertyName}; - return; - } - - \Closure::bind( - function () use ($localizedObject, $propertyName) { - $this->{$propertyName} = & $localizedObject->{$propertyName}; - }, - $this, - $property->getDeclaringClass()->getName() - )->__invoke(); - CODE; - - $this->setBody( - strtr( - $bodyTemplate, - ['{ EXCEPTION_CLASS }' => UnsupportedProxiedClassException::class] - ) - ); - } -} From 1381ecf18fa1ec8138511c2afcdd7def4213e9b1 Mon Sep 17 00:00:00 2001 From: Petr Buchyn Date: Tue, 13 Apr 2021 23:44:48 +0300 Subject: [PATCH 15/19] Fixes due to PR review --- .../MethodGenerator/BindProxyProperties.php | 120 +++++++- ...cessInterceptorScopeLocalizerGenerator.php | 2 - ...nterceptorScopeLocalizerFunctionalTest.php | 5 +- .../BindProxyPropertiesTest.php | 280 ++++++++++++------ 4 files changed, 311 insertions(+), 96 deletions(-) diff --git a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperties.php b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperties.php index a39aaaf45..ec232c0f6 100644 --- a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperties.php +++ b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyProperties.php @@ -6,12 +6,17 @@ use Laminas\Code\Generator\ParameterGenerator; use Laminas\Code\Generator\PropertyGenerator; +use ProxyManager\Exception\UnsupportedProxiedClassException; use ProxyManager\Generator\MethodGenerator; use ProxyManager\ProxyGenerator\Util\Properties; use ReflectionClass; +use ReflectionProperty; +use function array_key_exists; use function implode; use function sprintf; +use function strtr; +use function var_export; use const PHP_EOL; @@ -43,19 +48,118 @@ public function __construct( . '@param \\Closure[] $suffixInterceptors method interceptors to be used before method logic' ); - $properties = Properties::fromReflectionClass($originalClass); + $localizedProperties = []; + $properties = Properties::fromReflectionClass($originalClass)->withoutNonReferenceableProperties(); + foreach ($properties->getAccessibleProperties() as $property) { + $propertyName = $property->getName(); - $bodyLines = ['$class = new \ReflectionObject($localizedObject);']; - foreach ($properties->getInstanceProperties() as $property) { - $bodyLines[] = sprintf( - '$this->bindProxyProperty($localizedObject, $class, \'%s\');', - $property->getName() - ); + $localizedProperties[] = '$this->' . $propertyName . ' = & $localizedObject->' . $propertyName . ';'; + } + + foreach ($properties->getPrivateProperties() as $property) { + $propertyName = $property->getName(); + + $localizedProperties[] = "\\Closure::bind(function () use (\$localizedObject) {\n " + . '$this->' . $propertyName . ' = & $localizedObject->' . $propertyName . ";\n" + . '}, $this, ' . var_export($property->getDeclaringClass()->getName(), true) + . ')->__invoke();'; + } + + $bodyLines = [ + implode("\n\n", $localizedProperties), + ]; + + $nonReferenceableProperties = Properties::fromReflectionClass($originalClass) + ->onlyNonReferenceableProperties() + ->onlyInstanceProperties(); + + if (! $nonReferenceableProperties->empty()) { + $bodyLines[] = '$class = new \ReflectionObject($localizedObject);'; + $bodyLines[] = $this->generateClassMapInitializationCode($nonReferenceableProperties); + + foreach ($nonReferenceableProperties->getInstanceProperties() as $property) { + $bodyLines[] = $this->generateCodeForPropertyBinding($property); + } } $bodyLines[] = sprintf('$this->%s = $prefixInterceptors;', $prefixInterceptors->getName()); $bodyLines[] = sprintf('$this->%s = $suffixInterceptors;', $suffixInterceptors->getName()); - $this->setBody(implode(PHP_EOL, $bodyLines)); } + + private function generateClassMapInitializationCode(Properties $properties): string + { + $classMapInitializationCode = '$classesMap = []; // Class name to ReflectionClass map' . PHP_EOL; + + $mappedClasses = []; + foreach ($properties->getPrivateProperties() as $property) { + $declaringClassName = $property->getDeclaringClass()->getName(); + if (array_key_exists($declaringClassName, $mappedClasses)) { + continue; + } + + $classMapInitializationCode .= sprintf( + '$classesMap[\'%s\'] = new \ReflectionClass(\'%s\');', + $declaringClassName, + '\\' . $declaringClassName + ); + $classMapInitializationCode .= PHP_EOL; + + $mappedClasses[$declaringClassName] = null; + } + + return $classMapInitializationCode; + } + + private function generateCodeForPropertyBinding(ReflectionProperty $property): string + { + $declaringClassName = $property->getDeclaringClass()->getName(); + $localizedPropertyCode = $property->isPrivate() + ? sprintf( + '$property = $classesMap[\'%s\']->getProperty(\'%s\');', + $declaringClassName, + $property->getName() + ) + : sprintf('$property = $class->getProperty(\'%s\');', $property->getName()); + $localizedPropertyCode .= PHP_EOL; + + if (! $property->isPublic()) { + $localizedPropertyCode .= '$property->setAccessible(true);' . PHP_EOL; + } + + $localizedPropertyCode .= <<<'CODE' + if (!$property->isInitialized($localizedObject)) { + throw new \{ EXCEPTION_CLASS }( + sprintf( + 'Cannot create reference for property $%s of class %s: property must be initialized', + $property->getName(), + $class->getName() + ) + ); + } + CODE; + + $codeToCreateReference = '$this->{ PROPERTY_NAME } = & $localizedObject->{ PROPERTY_NAME };'; + if ($property->isPrivate()) { + $codeToCreateReference = <<<'CODE' + \Closure::bind( + function () use ($localizedObject) { + $this->{ PROPERTY_NAME } = & $localizedObject->{ PROPERTY_NAME }; + }, + $this, + $property->getDeclaringClass()->getName() + )->__invoke(); + CODE; + } + + $localizedPropertyCode .= PHP_EOL . $codeToCreateReference . PHP_EOL; + + return strtr( + $localizedPropertyCode, + [ + '{ PROPERTY_NAME }' => $property->getName(), + '{ EXCEPTION_CLASS }' => UnsupportedProxiedClassException::class, + ] + ); + } } diff --git a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizerGenerator.php b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizerGenerator.php index d716985f1..38e42d680 100644 --- a/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizerGenerator.php +++ b/src/ProxyManager/ProxyGenerator/AccessInterceptorScopeLocalizerGenerator.php @@ -16,7 +16,6 @@ use ProxyManager\ProxyGenerator\AccessInterceptor\PropertyGenerator\MethodPrefixInterceptors; use ProxyManager\ProxyGenerator\AccessInterceptor\PropertyGenerator\MethodSuffixInterceptors; use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\BindProxyProperties; -use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\BindProxyProperty; use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\InterceptedMethod; use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\MagicClone; use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizer\MethodGenerator\MagicGet; @@ -72,7 +71,6 @@ static function (MethodGenerator $generatedMethod) use ($originalClass, $classGe ), [ new StaticProxyConstructor($originalClass), - new BindProxyProperty($originalClass), new BindProxyProperties($originalClass, $prefixInterceptors, $suffixInterceptors), new SetMethodPrefixInterceptor($prefixInterceptors), new SetMethodSuffixInterceptor($suffixInterceptors), diff --git a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php index ff2cd76b4..1d8a2740b 100644 --- a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php +++ b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php @@ -593,9 +593,10 @@ public function testWillInterceptAndReturnEarlyOnVoidMethod(): void } /** @group 574 */ - public function testWillRefuseToGenerateReferencesToTypedPropertiesWithoutDefaultValues(): void + public function testWillThrowExceptionOnInstanceWithUninitializedProperties(): void { - $instance = new ClassWithPublicStringNullableTypedProperty(); + $class = new ReflectionClass(ClassWithNonNullableTypedProperties::class); + $instance = $class->newInstanceWithoutConstructor(); $factory = new AccessInterceptorScopeLocalizerFactory(); $this->expectException(UnsupportedProxiedClassException::class); diff --git a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php index 6ca18d8a6..475830934 100644 --- a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php +++ b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizer/MethodGenerator/BindProxyPropertiesTest.php @@ -69,19 +69,32 @@ public function testBodyStructure(): void ); $expectedCode = <<<'PHP' -$class = new \ReflectionObject($localizedObject); -$this->bindProxyProperty($localizedObject, $class, 'publicProperty0'); -$this->bindProxyProperty($localizedObject, $class, 'publicProperty1'); -$this->bindProxyProperty($localizedObject, $class, 'publicProperty2'); -$this->bindProxyProperty($localizedObject, $class, 'protectedProperty0'); -$this->bindProxyProperty($localizedObject, $class, 'protectedProperty1'); -$this->bindProxyProperty($localizedObject, $class, 'protectedProperty2'); -$this->bindProxyProperty($localizedObject, $class, 'privateProperty0'); -$this->bindProxyProperty($localizedObject, $class, 'privateProperty1'); -$this->bindProxyProperty($localizedObject, $class, 'privateProperty2'); -$this->pre = $prefixInterceptors; -$this->post = $suffixInterceptors; -PHP; + $this->publicProperty0 = & $localizedObject->publicProperty0; + + $this->publicProperty1 = & $localizedObject->publicProperty1; + + $this->publicProperty2 = & $localizedObject->publicProperty2; + + $this->protectedProperty0 = & $localizedObject->protectedProperty0; + + $this->protectedProperty1 = & $localizedObject->protectedProperty1; + + $this->protectedProperty2 = & $localizedObject->protectedProperty2; + + \Closure::bind(function () use ($localizedObject) { + $this->privateProperty0 = & $localizedObject->privateProperty0; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateProperty1 = & $localizedObject->privateProperty1; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateProperty2 = & $localizedObject->privateProperty2; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedProperties')->__invoke(); + $this->pre = $prefixInterceptors; + $this->post = $suffixInterceptors; + PHP; self::assertSame($expectedCode, $method->getBody()); } @@ -95,20 +108,28 @@ public function testBodyStructureWithProtectedProperties(): void ); $expectedCode = <<<'PHP' -$class = new \ReflectionObject($localizedObject); -$this->bindProxyProperty($localizedObject, $class, 'property0'); -$this->bindProxyProperty($localizedObject, $class, 'property1'); -$this->bindProxyProperty($localizedObject, $class, 'property2'); -$this->bindProxyProperty($localizedObject, $class, 'property3'); -$this->bindProxyProperty($localizedObject, $class, 'property4'); -$this->bindProxyProperty($localizedObject, $class, 'property5'); -$this->bindProxyProperty($localizedObject, $class, 'property6'); -$this->bindProxyProperty($localizedObject, $class, 'property7'); -$this->bindProxyProperty($localizedObject, $class, 'property8'); -$this->bindProxyProperty($localizedObject, $class, 'property9'); -$this->pre = $prefixInterceptors; -$this->post = $suffixInterceptors; -PHP; + $this->property0 = & $localizedObject->property0; + + $this->property1 = & $localizedObject->property1; + + $this->property2 = & $localizedObject->property2; + + $this->property3 = & $localizedObject->property3; + + $this->property4 = & $localizedObject->property4; + + $this->property5 = & $localizedObject->property5; + + $this->property6 = & $localizedObject->property6; + + $this->property7 = & $localizedObject->property7; + + $this->property8 = & $localizedObject->property8; + + $this->property9 = & $localizedObject->property9; + $this->pre = $prefixInterceptors; + $this->post = $suffixInterceptors; + PHP; self::assertSame( $expectedCode, @@ -125,20 +146,48 @@ public function testBodyStructureWithPrivateProperties(): void ); $expectedCode = <<<'PHP' -$class = new \ReflectionObject($localizedObject); -$this->bindProxyProperty($localizedObject, $class, 'property0'); -$this->bindProxyProperty($localizedObject, $class, 'property1'); -$this->bindProxyProperty($localizedObject, $class, 'property2'); -$this->bindProxyProperty($localizedObject, $class, 'property3'); -$this->bindProxyProperty($localizedObject, $class, 'property4'); -$this->bindProxyProperty($localizedObject, $class, 'property5'); -$this->bindProxyProperty($localizedObject, $class, 'property6'); -$this->bindProxyProperty($localizedObject, $class, 'property7'); -$this->bindProxyProperty($localizedObject, $class, 'property8'); -$this->bindProxyProperty($localizedObject, $class, 'property9'); -$this->pre = $prefixInterceptors; -$this->post = $suffixInterceptors; -PHP; + \Closure::bind(function () use ($localizedObject) { + $this->property0 = & $localizedObject->property0; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property1 = & $localizedObject->property1; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property2 = & $localizedObject->property2; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property3 = & $localizedObject->property3; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property4 = & $localizedObject->property4; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property5 = & $localizedObject->property5; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property6 = & $localizedObject->property6; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property7 = & $localizedObject->property7; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property8 = & $localizedObject->property8; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->property9 = & $localizedObject->property9; + }, $this, 'ProxyManagerTestAsset\\ClassWithPrivateProperties')->__invoke(); + $this->pre = $prefixInterceptors; + $this->post = $suffixInterceptors; + PHP; self::assertSame( $expectedCode, @@ -155,49 +204,112 @@ public function testBodyStructureWithTypedProperties(): void ); $expectedCode = <<<'PHP' -$class = new \ReflectionObject($localizedObject); -$this->bindProxyProperty($localizedObject, $class, 'publicUnTypedProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicBoolProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicNullableBoolProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicIntProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicNullableIntProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicFloatProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicNullableFloatProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicStringProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicNullableStringProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicArrayProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicNullableArrayProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicIterableProperty'); -$this->bindProxyProperty($localizedObject, $class, 'publicNullableIterableProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedUnTypedProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedBoolProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedNullableBoolProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedIntProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedNullableIntProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedFloatProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedNullableFloatProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedStringProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedNullableStringProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedArrayProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedNullableArrayProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedIterableProperty'); -$this->bindProxyProperty($localizedObject, $class, 'protectedNullableIterableProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateUnTypedProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateBoolProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateNullableBoolProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateIntProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateNullableIntProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateFloatProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateNullableFloatProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateStringProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateNullableStringProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateArrayProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateNullableArrayProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateIterableProperty'); -$this->bindProxyProperty($localizedObject, $class, 'privateNullableIterableProperty'); -$this->pre = $prefixInterceptors; -$this->post = $suffixInterceptors; -PHP; + $this->publicUnTypedProperty = & $localizedObject->publicUnTypedProperty; + + $this->publicBoolProperty = & $localizedObject->publicBoolProperty; + + $this->publicNullableBoolProperty = & $localizedObject->publicNullableBoolProperty; + + $this->publicIntProperty = & $localizedObject->publicIntProperty; + + $this->publicNullableIntProperty = & $localizedObject->publicNullableIntProperty; + + $this->publicFloatProperty = & $localizedObject->publicFloatProperty; + + $this->publicNullableFloatProperty = & $localizedObject->publicNullableFloatProperty; + + $this->publicStringProperty = & $localizedObject->publicStringProperty; + + $this->publicNullableStringProperty = & $localizedObject->publicNullableStringProperty; + + $this->publicArrayProperty = & $localizedObject->publicArrayProperty; + + $this->publicNullableArrayProperty = & $localizedObject->publicNullableArrayProperty; + + $this->publicIterableProperty = & $localizedObject->publicIterableProperty; + + $this->publicNullableIterableProperty = & $localizedObject->publicNullableIterableProperty; + + $this->protectedUnTypedProperty = & $localizedObject->protectedUnTypedProperty; + + $this->protectedBoolProperty = & $localizedObject->protectedBoolProperty; + + $this->protectedNullableBoolProperty = & $localizedObject->protectedNullableBoolProperty; + + $this->protectedIntProperty = & $localizedObject->protectedIntProperty; + + $this->protectedNullableIntProperty = & $localizedObject->protectedNullableIntProperty; + + $this->protectedFloatProperty = & $localizedObject->protectedFloatProperty; + + $this->protectedNullableFloatProperty = & $localizedObject->protectedNullableFloatProperty; + + $this->protectedStringProperty = & $localizedObject->protectedStringProperty; + + $this->protectedNullableStringProperty = & $localizedObject->protectedNullableStringProperty; + + $this->protectedArrayProperty = & $localizedObject->protectedArrayProperty; + + $this->protectedNullableArrayProperty = & $localizedObject->protectedNullableArrayProperty; + + $this->protectedIterableProperty = & $localizedObject->protectedIterableProperty; + + $this->protectedNullableIterableProperty = & $localizedObject->protectedNullableIterableProperty; + + \Closure::bind(function () use ($localizedObject) { + $this->privateUnTypedProperty = & $localizedObject->privateUnTypedProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateBoolProperty = & $localizedObject->privateBoolProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateNullableBoolProperty = & $localizedObject->privateNullableBoolProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateIntProperty = & $localizedObject->privateIntProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateNullableIntProperty = & $localizedObject->privateNullableIntProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateFloatProperty = & $localizedObject->privateFloatProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateNullableFloatProperty = & $localizedObject->privateNullableFloatProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateStringProperty = & $localizedObject->privateStringProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateNullableStringProperty = & $localizedObject->privateNullableStringProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateArrayProperty = & $localizedObject->privateArrayProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateNullableArrayProperty = & $localizedObject->privateNullableArrayProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateIterableProperty = & $localizedObject->privateIterableProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + + \Closure::bind(function () use ($localizedObject) { + $this->privateNullableIterableProperty = & $localizedObject->privateNullableIterableProperty; + }, $this, 'ProxyManagerTestAsset\\ClassWithMixedReferenceableTypedProperties')->__invoke(); + $this->pre = $prefixInterceptors; + $this->post = $suffixInterceptors; + PHP; self::assertSame( $expectedCode, From 04c486739d115fe139c0207f9e6d3b5addbf00d4 Mon Sep 17 00:00:00 2001 From: Petr Buchyn Date: Mon, 13 Dec 2021 12:11:37 +0200 Subject: [PATCH 16/19] Updated dependencies, composer.json changed to allow PHP 8.1 --- composer.json | 2 +- composer.lock | 855 ++++++++++++++++++++++++++++---------------------- 2 files changed, 485 insertions(+), 372 deletions(-) diff --git a/composer.json b/composer.json index 279f735cc..3dbd228b9 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ } ], "require": { - "php": "~8.0.0", + "php": ">=8.0.0", "composer-runtime-api": "^2.1.0", "laminas/laminas-code": "^4.4.2", "webimpress/safe-writer": "^2.2.0" diff --git a/composer.lock b/composer.lock index cec4ae8d2..5da90fd16 100644 --- a/composer.lock +++ b/composer.lock @@ -4,47 +4,46 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "da7e8e29fd166baf1cd0f010bacd1478", + "content-hash": "9de8b5eee59bc3252d022a6fae3b4524", "packages": [ { "name": "laminas/laminas-code", - "version": "4.4.2", + "version": "4.5.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-code.git", - "reference": "54251ab2b16c41c6980387839496b235f5f6e10b" + "reference": "c99ef8e5629c33bfaa3a8f1df773e916af564cd6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-code/zipball/54251ab2b16c41c6980387839496b235f5f6e10b", - "reference": "54251ab2b16c41c6980387839496b235f5f6e10b", + "url": "https://api.github.com/repos/laminas/laminas-code/zipball/c99ef8e5629c33bfaa3a8f1df773e916af564cd6", + "reference": "c99ef8e5629c33bfaa3a8f1df773e916af564cd6", "shasum": "" }, "require": { - "php": "^7.4 || ~8.0.0" - }, - "conflict": { - "phpspec/prophecy": "<1.9.0" + "php": ">=7.4, <8.2" }, "require-dev": { - "doctrine/annotations": "^1.10.4", + "doctrine/annotations": "^1.13.2", "ext-phar": "*", - "laminas/laminas-coding-standard": "^2.1.4", - "laminas/laminas-stdlib": "^3.3.0", - "phpunit/phpunit": "^9.4.2", - "psalm/plugin-phpunit": "^0.14.0", - "vimeo/psalm": "^4.3.1" + "laminas/laminas-coding-standard": "^2.3.0", + "laminas/laminas-stdlib": "^3.6.1", + "phpunit/phpunit": "^9.5.10", + "psalm/plugin-phpunit": "^0.16.1", + "vimeo/psalm": "^4.13.1" }, "suggest": { "doctrine/annotations": "Doctrine\\Common\\Annotations >=1.0 for annotation features", - "laminas/laminas-stdlib": "Laminas\\Stdlib component", - "laminas/laminas-zendframework-bridge": "A bridge with Zend Framework" + "laminas/laminas-stdlib": "Laminas\\Stdlib component" }, "type": "library", "autoload": { "psr-4": { "Laminas\\Code\\": "src/" - } + }, + "files": [ + "polyfill/ReflectionEnumPolyfill.php" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -71,7 +70,7 @@ "type": "community_bridge" } ], - "time": "2021-07-09T11:58:40+00:00" + "time": "2021-12-07T06:00:32+00:00" }, { "name": "webimpress/safe-writer", @@ -136,27 +135,27 @@ "packages-dev": [ { "name": "amphp/amp", - "version": "v2.5.2", + "version": "v2.6.1", "source": { "type": "git", "url": "https://github.com/amphp/amp.git", - "reference": "efca2b32a7580087adb8aabbff6be1dc1bb924a9" + "reference": "c5fc66a78ee38d7ac9195a37bacaf940eb3f65ae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/amp/zipball/efca2b32a7580087adb8aabbff6be1dc1bb924a9", - "reference": "efca2b32a7580087adb8aabbff6be1dc1bb924a9", + "url": "https://api.github.com/repos/amphp/amp/zipball/c5fc66a78ee38d7ac9195a37bacaf940eb3f65ae", + "reference": "c5fc66a78ee38d7ac9195a37bacaf940eb3f65ae", "shasum": "" }, "require": { - "php": ">=7" + "php": ">=7.1" }, "require-dev": { "amphp/php-cs-fixer-config": "dev-master", "amphp/phpunit-util": "^1", "ext-json": "*", "jetbrains/phpstorm-stubs": "^2019.3", - "phpunit/phpunit": "^6.0.9 | ^7", + "phpunit/phpunit": "^7 | ^8 | ^9", "psalm/phar": "^3.11@dev", "react/promise": "^2" }, @@ -213,7 +212,7 @@ "support": { "irc": "irc://irc.freenode.org/amphp", "issues": "https://github.com/amphp/amp/issues", - "source": "https://github.com/amphp/amp/tree/v2.5.2" + "source": "https://github.com/amphp/amp/tree/v2.6.1" }, "funding": [ { @@ -221,7 +220,7 @@ "type": "github" } ], - "time": "2021-01-10T17:06:37+00:00" + "time": "2021-09-23T18:43:08+00:00" }, { "name": "amphp/byte-stream", @@ -450,16 +449,16 @@ }, { "name": "composer/package-versions-deprecated", - "version": "1.11.99.2", + "version": "1.11.99.4", "source": { "type": "git", "url": "https://github.com/composer/package-versions-deprecated.git", - "reference": "c6522afe5540d5fc46675043d3ed5a45a740b27c" + "reference": "b174585d1fe49ceed21928a945138948cb394600" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/c6522afe5540d5fc46675043d3ed5a45a740b27c", - "reference": "c6522afe5540d5fc46675043d3ed5a45a740b27c", + "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/b174585d1fe49ceed21928a945138948cb394600", + "reference": "b174585d1fe49ceed21928a945138948cb394600", "shasum": "" }, "require": { @@ -503,7 +502,7 @@ "description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)", "support": { "issues": "https://github.com/composer/package-versions-deprecated/issues", - "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.2" + "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.4" }, "funding": [ { @@ -519,20 +518,91 @@ "type": "tidelift" } ], - "time": "2021-05-24T07:46:03+00:00" + "time": "2021-09-13T08:41:34+00:00" + }, + { + "name": "composer/pcre", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/composer/pcre.git", + "reference": "3d322d715c43a1ac36c7fe215fa59336265500f2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/composer/pcre/zipball/3d322d715c43a1ac36c7fe215fa59336265500f2", + "reference": "3d322d715c43a1ac36c7fe215fa59336265500f2", + "shasum": "" + }, + "require": { + "php": "^5.3.2 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1", + "phpstan/phpstan-strict-rules": "^1.1", + "symfony/phpunit-bridge": "^4.2 || ^5" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Composer\\Pcre\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "http://seld.be" + } + ], + "description": "PCRE wrapping library that offers type-safe preg_* replacements.", + "keywords": [ + "PCRE", + "preg", + "regex", + "regular expression" + ], + "support": { + "issues": "https://github.com/composer/pcre/issues", + "source": "https://github.com/composer/pcre/tree/1.0.0" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], + "time": "2021-12-06T15:17:27+00:00" }, { "name": "composer/semver", - "version": "3.2.5", + "version": "3.2.6", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "31f3ea725711245195f62e54ffa402d8ef2fdba9" + "reference": "83e511e247de329283478496f7a1e114c9517506" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/31f3ea725711245195f62e54ffa402d8ef2fdba9", - "reference": "31f3ea725711245195f62e54ffa402d8ef2fdba9", + "url": "https://api.github.com/repos/composer/semver/zipball/83e511e247de329283478496f7a1e114c9517506", + "reference": "83e511e247de329283478496f7a1e114c9517506", "shasum": "" }, "require": { @@ -584,7 +654,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.2.5" + "source": "https://github.com/composer/semver/tree/3.2.6" }, "funding": [ { @@ -600,29 +670,31 @@ "type": "tidelift" } ], - "time": "2021-05-24T12:41:47+00:00" + "time": "2021-10-25T11:34:17+00:00" }, { "name": "composer/xdebug-handler", - "version": "2.0.1", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/composer/xdebug-handler.git", - "reference": "964adcdd3a28bf9ed5d9ac6450064e0d71ed7496" + "reference": "6555461e76962fd0379c444c46fd558a0fcfb65e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/964adcdd3a28bf9ed5d9ac6450064e0d71ed7496", - "reference": "964adcdd3a28bf9ed5d9ac6450064e0d71ed7496", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/6555461e76962fd0379c444c46fd558a0fcfb65e", + "reference": "6555461e76962fd0379c444c46fd558a0fcfb65e", "shasum": "" }, "require": { + "composer/pcre": "^1", "php": "^5.3.2 || ^7.0 || ^8.0", - "psr/log": "^1.0" + "psr/log": "^1 || ^2 || ^3" }, "require-dev": { - "phpstan/phpstan": "^0.12.55", - "symfony/phpunit-bridge": "^4.2 || ^5" + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-strict-rules": "^1.1", + "symfony/phpunit-bridge": "^4.2 || ^5.0 || ^6.0" }, "type": "library", "autoload": { @@ -648,7 +720,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/xdebug-handler/issues", - "source": "https://github.com/composer/xdebug-handler/tree/2.0.1" + "source": "https://github.com/composer/xdebug-handler/tree/2.0.3" }, "funding": [ { @@ -664,7 +736,7 @@ "type": "tidelift" } ], - "time": "2021-05-05T19:37:51+00:00" + "time": "2021-12-08T13:07:32+00:00" }, { "name": "dealerdirect/phpcodesniffer-composer-installer", @@ -775,16 +847,16 @@ }, { "name": "doctrine/annotations", - "version": "1.13.1", + "version": "1.13.2", "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "e6e7b7d5b45a2f2abc5460cc6396480b2b1d321f" + "reference": "5b668aef16090008790395c02c893b1ba13f7e08" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/e6e7b7d5b45a2f2abc5460cc6396480b2b1d321f", - "reference": "e6e7b7d5b45a2f2abc5460cc6396480b2b1d321f", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/5b668aef16090008790395c02c893b1ba13f7e08", + "reference": "5b668aef16090008790395c02c893b1ba13f7e08", "shasum": "" }, "require": { @@ -841,9 +913,9 @@ ], "support": { "issues": "https://github.com/doctrine/annotations/issues", - "source": "https://github.com/doctrine/annotations/tree/1.13.1" + "source": "https://github.com/doctrine/annotations/tree/1.13.2" }, - "time": "2021-05-16T18:07:53+00:00" + "time": "2021-08-05T19:00:23+00:00" }, { "name": "doctrine/coding-standard", @@ -1314,25 +1386,25 @@ }, { "name": "infection/abstract-testframework-adapter", - "version": "0.3.1", + "version": "0.5.0", "source": { "type": "git", "url": "https://github.com/infection/abstract-testframework-adapter.git", - "reference": "c52539339f28d6b67625ff24496289b3e6d66025" + "reference": "18925e20d15d1a5995bb85c9dc09e8751e1e069b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/infection/abstract-testframework-adapter/zipball/c52539339f28d6b67625ff24496289b3e6d66025", - "reference": "c52539339f28d6b67625ff24496289b3e6d66025", + "url": "https://api.github.com/repos/infection/abstract-testframework-adapter/zipball/18925e20d15d1a5995bb85c9dc09e8751e1e069b", + "reference": "18925e20d15d1a5995bb85c9dc09e8751e1e069b", "shasum": "" }, "require": { - "php": "^7.3 || ^8.0" + "php": "^7.4 || ^8.0" }, "require-dev": { "ergebnis/composer-normalize": "^2.8", - "friendsofphp/php-cs-fixer": "^2.16", - "phpunit/phpunit": "^9.0" + "friendsofphp/php-cs-fixer": "^2.17", + "phpunit/phpunit": "^9.5" }, "type": "library", "autoload": { @@ -1353,9 +1425,19 @@ "description": "Abstract Test Framework Adapter for Infection", "support": { "issues": "https://github.com/infection/abstract-testframework-adapter/issues", - "source": "https://github.com/infection/abstract-testframework-adapter/tree/0.3" + "source": "https://github.com/infection/abstract-testframework-adapter/tree/0.5.0" }, - "time": "2020-08-30T13:50:12+00:00" + "funding": [ + { + "url": "https://github.com/infection", + "type": "github" + }, + { + "url": "https://opencollective.com/infection", + "type": "open_collective" + } + ], + "time": "2021-08-17T18:49:12+00:00" }, { "name": "infection/extension-installer", @@ -1415,16 +1497,16 @@ }, { "name": "infection/include-interceptor", - "version": "0.2.4", + "version": "0.2.5", "source": { "type": "git", "url": "https://github.com/infection/include-interceptor.git", - "reference": "e3cf9317a7fd554ab60a5587f028b16418cc4264" + "reference": "0cc76d95a79d9832d74e74492b0a30139904bdf7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/infection/include-interceptor/zipball/e3cf9317a7fd554ab60a5587f028b16418cc4264", - "reference": "e3cf9317a7fd554ab60a5587f028b16418cc4264", + "url": "https://api.github.com/repos/infection/include-interceptor/zipball/0cc76d95a79d9832d74e74492b0a30139904bdf7", + "reference": "0cc76d95a79d9832d74e74492b0a30139904bdf7", "shasum": "" }, "require-dev": { @@ -1455,35 +1537,45 @@ "description": "Stream Wrapper: Include Interceptor. Allows to replace included (autoloaded) file with another one.", "support": { "issues": "https://github.com/infection/include-interceptor/issues", - "source": "https://github.com/infection/include-interceptor/tree/0.2.4" + "source": "https://github.com/infection/include-interceptor/tree/0.2.5" }, - "time": "2020-08-07T22:40:37+00:00" + "funding": [ + { + "url": "https://github.com/infection", + "type": "github" + }, + { + "url": "https://opencollective.com/infection", + "type": "open_collective" + } + ], + "time": "2021-08-09T10:03:57+00:00" }, { "name": "infection/infection", - "version": "0.23.0", + "version": "0.25.3", "source": { "type": "git", "url": "https://github.com/infection/infection.git", - "reference": "ac87ae49e9f192f610276565e54469231dca7837" + "reference": "f7a1af285476eeef7e72cedcfd69fa11fbb61c71" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/infection/infection/zipball/ac87ae49e9f192f610276565e54469231dca7837", - "reference": "ac87ae49e9f192f610276565e54469231dca7837", + "url": "https://api.github.com/repos/infection/infection/zipball/f7a1af285476eeef7e72cedcfd69fa11fbb61c71", + "reference": "f7a1af285476eeef7e72cedcfd69fa11fbb61c71", "shasum": "" }, "require": { + "composer-runtime-api": "^2.0", "composer/xdebug-handler": "^2.0", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", - "infection/abstract-testframework-adapter": "^0.3.1", + "infection/abstract-testframework-adapter": "^0.5.0", "infection/extension-installer": "^0.1.0", - "infection/include-interceptor": "^0.2.4", - "justinrainbow/json-schema": "^5.2", + "infection/include-interceptor": "^0.2.5", + "justinrainbow/json-schema": "^5.2.10", "nikic/php-parser": "^4.10.3", - "ocramius/package-versions": "^1.9.0 || ^2.0", "ondram/ci-detector": "^3.3.0", "php": "^7.4.7 || ^8.0", "sanmai/later": "^0.1.1", @@ -1494,7 +1586,7 @@ "symfony/filesystem": "^3.4.29 || ^4.1.19 || ^5.0", "symfony/finder": "^3.4.29 || ^4.1.19 || ^5.0", "symfony/process": "^3.4.29 || ^4.1.19 || ^5.0", - "thecodingmachine/safe": "^1.0", + "thecodingmachine/safe": "^1.1.3", "webmozart/assert": "^1.3", "webmozart/path-util": "^2.3" }, @@ -1503,6 +1595,7 @@ "symfony/console": "=4.1.5" }, "require-dev": { + "brianium/paratest": "^6.3", "ext-simplexml": "*", "helmich/phpunit-json-assert": "^3.0", "phpspec/prophecy-phpunit": "^2.0", @@ -1570,7 +1663,7 @@ ], "support": { "issues": "https://github.com/infection/infection/issues", - "source": "https://github.com/infection/infection/tree/0.23.0" + "source": "https://github.com/infection/infection/tree/0.25.3" }, "funding": [ { @@ -1582,20 +1675,20 @@ "type": "open_collective" } ], - "time": "2021-05-13T16:12:33+00:00" + "time": "2021-10-02T13:16:05+00:00" }, { "name": "justinrainbow/json-schema", - "version": "5.2.10", + "version": "5.2.11", "source": { "type": "git", "url": "https://github.com/justinrainbow/json-schema.git", - "reference": "2ba9c8c862ecd5510ed16c6340aa9f6eadb4f31b" + "reference": "2ab6744b7296ded80f8cc4f9509abbff393399aa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/2ba9c8c862ecd5510ed16c6340aa9f6eadb4f31b", - "reference": "2ba9c8c862ecd5510ed16c6340aa9f6eadb4f31b", + "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/2ab6744b7296ded80f8cc4f9509abbff393399aa", + "reference": "2ab6744b7296ded80f8cc4f9509abbff393399aa", "shasum": "" }, "require": { @@ -1650,9 +1743,9 @@ ], "support": { "issues": "https://github.com/justinrainbow/json-schema/issues", - "source": "https://github.com/justinrainbow/json-schema/tree/5.2.10" + "source": "https://github.com/justinrainbow/json-schema/tree/5.2.11" }, - "time": "2020-05-27T16:41:55+00:00" + "time": "2021-07-22T09:24:00+00:00" }, { "name": "myclabs/deep-copy", @@ -1765,16 +1858,16 @@ }, { "name": "nikic/php-parser", - "version": "v4.11.0", + "version": "v4.13.2", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "fe14cf3672a149364fb66dfe11bf6549af899f94" + "reference": "210577fe3cf7badcc5814d99455df46564f3c077" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/fe14cf3672a149364fb66dfe11bf6549af899f94", - "reference": "fe14cf3672a149364fb66dfe11bf6549af899f94", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/210577fe3cf7badcc5814d99455df46564f3c077", + "reference": "210577fe3cf7badcc5814d99455df46564f3c077", "shasum": "" }, "require": { @@ -1815,9 +1908,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.11.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.13.2" }, - "time": "2021-07-03T13:36:55+00:00" + "time": "2021-11-30T19:35:32+00:00" }, { "name": "ondram/ci-detector", @@ -1946,16 +2039,16 @@ }, { "name": "phar-io/manifest", - "version": "2.0.1", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/phar-io/manifest.git", - "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133" + "reference": "97803eca37d319dfa7826cc2437fc020857acb53" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/85265efd3af7ba3ca4b2a2c34dbfc5788dd29133", - "reference": "85265efd3af7ba3ca4b2a2c34dbfc5788dd29133", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", + "reference": "97803eca37d319dfa7826cc2437fc020857acb53", "shasum": "" }, "require": { @@ -2000,9 +2093,9 @@ "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", "support": { "issues": "https://github.com/phar-io/manifest/issues", - "source": "https://github.com/phar-io/manifest/tree/master" + "source": "https://github.com/phar-io/manifest/tree/2.0.3" }, - "time": "2020-06-27T14:33:11+00:00" + "time": "2021-07-20T11:28:43+00:00" }, { "name": "phar-io/version", @@ -2057,20 +2150,20 @@ }, { "name": "phpbench/container", - "version": "2.1.0", + "version": "2.2.0", "source": { "type": "git", "url": "https://github.com/phpbench/container.git", - "reference": "def10824b6009d31028fa8dc9f73f4b26b234a67" + "reference": "4af6c2619296e95b72409fd6244f000276277047" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpbench/container/zipball/def10824b6009d31028fa8dc9f73f4b26b234a67", - "reference": "def10824b6009d31028fa8dc9f73f4b26b234a67", + "url": "https://api.github.com/repos/phpbench/container/zipball/4af6c2619296e95b72409fd6244f000276277047", + "reference": "4af6c2619296e95b72409fd6244f000276277047", "shasum": "" }, "require": { - "psr/container": "^1.0", + "psr/container": "^1.0|^2.0", "symfony/options-resolver": "^4.2 || ^5.0" }, "require-dev": { @@ -2102,22 +2195,22 @@ "description": "Simple, configurable, service container.", "support": { "issues": "https://github.com/phpbench/container/issues", - "source": "https://github.com/phpbench/container/tree/2.1.0" + "source": "https://github.com/phpbench/container/tree/2.2.0" }, - "time": "2021-04-04T07:23:17+00:00" + "time": "2021-07-14T20:56:29+00:00" }, { "name": "phpbench/dom", - "version": "0.3.1", + "version": "0.3.2", "source": { "type": "git", "url": "https://github.com/phpbench/dom.git", - "reference": "d26e615c4d64da41d168ab1096e4f55d97f2344f" + "reference": "b013b717832ddbaadf2a40984b04bc66af9a7110" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpbench/dom/zipball/d26e615c4d64da41d168ab1096e4f55d97f2344f", - "reference": "d26e615c4d64da41d168ab1096e4f55d97f2344f", + "url": "https://api.github.com/repos/phpbench/dom/zipball/b013b717832ddbaadf2a40984b04bc66af9a7110", + "reference": "b013b717832ddbaadf2a40984b04bc66af9a7110", "shasum": "" }, "require": { @@ -2153,53 +2246,53 @@ "description": "DOM wrapper to simplify working with the PHP DOM implementation", "support": { "issues": "https://github.com/phpbench/dom/issues", - "source": "https://github.com/phpbench/dom/tree/0.3.1" + "source": "https://github.com/phpbench/dom/tree/0.3.2" }, - "time": "2021-04-21T20:44:19+00:00" + "time": "2021-09-24T15:26:07+00:00" }, { "name": "phpbench/phpbench", - "version": "1.0.3", + "version": "1.2.2", "source": { "type": "git", "url": "https://github.com/phpbench/phpbench.git", - "reference": "9827767f62f6f84974b1317f53536d68ae8db5e1" + "reference": "0799479fcb4d4bf01d2320c2ea051c04e55adf39" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpbench/phpbench/zipball/9827767f62f6f84974b1317f53536d68ae8db5e1", - "reference": "9827767f62f6f84974b1317f53536d68ae8db5e1", + "url": "https://api.github.com/repos/phpbench/phpbench/zipball/0799479fcb4d4bf01d2320c2ea051c04e55adf39", + "reference": "0799479fcb4d4bf01d2320c2ea051c04e55adf39", "shasum": "" }, "require": { - "doctrine/annotations": "^1.2.7", + "doctrine/annotations": "^1.13", "ext-dom": "*", "ext-json": "*", "ext-pcre": "*", "ext-reflection": "*", "ext-spl": "*", "ext-tokenizer": "*", - "php": "^7.2 || ^8.0", + "php": "^7.3 || ^8.0", "phpbench/container": "^2.1", "phpbench/dom": "~0.3.1", "psr/log": "^1.1", "seld/jsonlint": "^1.1", - "symfony/console": "^4.2 || ^5.0", - "symfony/filesystem": "^4.2 || ^5.0", - "symfony/finder": "^4.2 || ^5.0", - "symfony/options-resolver": "^4.2 || ^5.0", - "symfony/process": "^4.2 || ^5.0", + "symfony/console": "^4.2 || ^5.0 || ^6.0", + "symfony/filesystem": "^4.2 || ^5.0 || ^6.0", + "symfony/finder": "^4.2 || ^5.0 || ^6.0", + "symfony/options-resolver": "^4.2 || ^5.0 || ^6.0", + "symfony/process": "^4.2 || ^5.0 || ^6.0", "webmozart/path-util": "^2.3" }, "require-dev": { "dantleech/invoke": "^2.0", - "friendsofphp/php-cs-fixer": "^2.13.1", + "friendsofphp/php-cs-fixer": "^3.0", "jangregor/phpstan-prophecy": "^0.8.1", "phpspec/prophecy": "^1.12", "phpstan/phpstan": "^0.12.7", "phpunit/phpunit": "^8.5.8 || ^9.0", - "symfony/error-handler": "^5.2", - "symfony/var-dumper": "^4.0 || ^5.0" + "symfony/error-handler": "^5.2 || ^6.0", + "symfony/var-dumper": "^4.0 || ^5.0 || ^6.0" }, "suggest": { "ext-xdebug": "For Xdebug profiling extension." @@ -2210,14 +2303,16 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0-dev" + "dev-master": "1.1-dev" } }, "autoload": { + "files": [ + "lib/Report/Func/functions.php" + ], "psr-4": { "PhpBench\\": "lib/", - "PhpBench\\Extensions\\XDebug\\": "extensions/xdebug/lib/", - "PhpBench\\Extensions\\Reports\\": "extensions/reports/lib/" + "PhpBench\\Extensions\\XDebug\\": "extensions/xdebug/lib/" } }, "notification-url": "https://packagist.org/downloads/", @@ -2233,7 +2328,7 @@ "description": "PHP Benchmarking Framework", "support": { "issues": "https://github.com/phpbench/phpbench/issues", - "source": "https://github.com/phpbench/phpbench/tree/1.0.3" + "source": "https://github.com/phpbench/phpbench/tree/1.2.2" }, "funding": [ { @@ -2241,7 +2336,7 @@ "type": "github" } ], - "time": "2021-07-03T09:36:14+00:00" + "time": "2021-12-11T20:52:22+00:00" }, { "name": "phpdocumentor/reflection-common", @@ -2298,16 +2393,16 @@ }, { "name": "phpdocumentor/reflection-docblock", - "version": "5.2.2", + "version": "5.3.0", "source": { "type": "git", "url": "https://github.com/phpDocumentor/ReflectionDocBlock.git", - "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556" + "reference": "622548b623e81ca6d78b721c5e029f4ce664f170" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/069a785b2141f5bcf49f3e353548dc1cce6df556", - "reference": "069a785b2141f5bcf49f3e353548dc1cce6df556", + "url": "https://api.github.com/repos/phpDocumentor/ReflectionDocBlock/zipball/622548b623e81ca6d78b721c5e029f4ce664f170", + "reference": "622548b623e81ca6d78b721c5e029f4ce664f170", "shasum": "" }, "require": { @@ -2318,7 +2413,8 @@ "webmozart/assert": "^1.9.1" }, "require-dev": { - "mockery/mockery": "~1.3.2" + "mockery/mockery": "~1.3.2", + "psalm/phar": "^4.8" }, "type": "library", "extra": { @@ -2348,22 +2444,22 @@ "description": "With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock.", "support": { "issues": "https://github.com/phpDocumentor/ReflectionDocBlock/issues", - "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/master" + "source": "https://github.com/phpDocumentor/ReflectionDocBlock/tree/5.3.0" }, - "time": "2020-09-03T19:13:55+00:00" + "time": "2021-10-19T17:43:47+00:00" }, { "name": "phpdocumentor/type-resolver", - "version": "1.4.0", + "version": "1.5.1", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0" + "reference": "a12f7e301eb7258bb68acd89d4aefa05c2906cae" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", - "reference": "6a467b8989322d92aa1c8bf2bebcc6e5c2ba55c0", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/a12f7e301eb7258bb68acd89d4aefa05c2906cae", + "reference": "a12f7e301eb7258bb68acd89d4aefa05c2906cae", "shasum": "" }, "require": { @@ -2371,7 +2467,8 @@ "phpdocumentor/reflection-common": "^2.0" }, "require-dev": { - "ext-tokenizer": "*" + "ext-tokenizer": "*", + "psalm/phar": "^4.8" }, "type": "library", "extra": { @@ -2397,39 +2494,39 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.4.0" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.5.1" }, - "time": "2020-09-17T18:55:26+00:00" + "time": "2021-10-02T14:08:47+00:00" }, { "name": "phpspec/prophecy", - "version": "1.13.0", + "version": "v1.15.0", "source": { "type": "git", "url": "https://github.com/phpspec/prophecy.git", - "reference": "be1996ed8adc35c3fd795488a653f4b518be70ea" + "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/be1996ed8adc35c3fd795488a653f4b518be70ea", - "reference": "be1996ed8adc35c3fd795488a653f4b518be70ea", + "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bbcd7380b0ebf3961ee21409db7b38bc31d69a13", + "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13", "shasum": "" }, "require": { "doctrine/instantiator": "^1.2", - "php": "^7.2 || ~8.0, <8.1", + "php": "^7.2 || ~8.0, <8.2", "phpdocumentor/reflection-docblock": "^5.2", "sebastian/comparator": "^3.0 || ^4.0", "sebastian/recursion-context": "^3.0 || ^4.0" }, "require-dev": { - "phpspec/phpspec": "^6.0", + "phpspec/phpspec": "^6.0 || ^7.0", "phpunit/phpunit": "^8.0 || ^9.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.11.x-dev" + "dev-master": "1.x-dev" } }, "autoload": { @@ -2464,22 +2561,22 @@ ], "support": { "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/1.13.0" + "source": "https://github.com/phpspec/prophecy/tree/v1.15.0" }, - "time": "2021-03-17T13:42:18+00:00" + "time": "2021-12-08T12:19:24+00:00" }, { "name": "phpstan/phpdoc-parser", - "version": "0.5.5", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "ea0b17460ec38e20d7eb64e7ec49b5d44af5d28c" + "reference": "dbc093d7af60eff5cd575d2ed761b15ed40bd08e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/ea0b17460ec38e20d7eb64e7ec49b5d44af5d28c", - "reference": "ea0b17460ec38e20d7eb64e7ec49b5d44af5d28c", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/dbc093d7af60eff5cd575d2ed761b15ed40bd08e", + "reference": "dbc093d7af60eff5cd575d2ed761b15ed40bd08e", "shasum": "" }, "require": { @@ -2488,15 +2585,15 @@ "require-dev": { "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^0.12.87", - "phpstan/phpstan-strict-rules": "^0.12.5", + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-strict-rules": "^1.0", "phpunit/phpunit": "^9.5", "symfony/process": "^5.2" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "0.5-dev" + "dev-master": "1.0-dev" } }, "autoload": { @@ -2513,29 +2610,29 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/0.5.5" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.2.0" }, - "time": "2021-06-11T13:24:46+00:00" + "time": "2021-09-16T20:46:02+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "9.2.6", + "version": "9.2.10", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "f6293e1b30a2354e8428e004689671b83871edde" + "reference": "d5850aaf931743067f4bfc1ae4cbd06468400687" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/f6293e1b30a2354e8428e004689671b83871edde", - "reference": "f6293e1b30a2354e8428e004689671b83871edde", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/d5850aaf931743067f4bfc1ae4cbd06468400687", + "reference": "d5850aaf931743067f4bfc1ae4cbd06468400687", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.10.2", + "nikic/php-parser": "^4.13.0", "php": ">=7.3", "phpunit/php-file-iterator": "^3.0.3", "phpunit/php-text-template": "^2.0.2", @@ -2584,7 +2681,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.6" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.10" }, "funding": [ { @@ -2592,20 +2689,20 @@ "type": "github" } ], - "time": "2021-03-28T07:26:59+00:00" + "time": "2021-12-05T09:12:13+00:00" }, { "name": "phpunit/php-file-iterator", - "version": "3.0.5", + "version": "3.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-file-iterator.git", - "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8" + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/aa4be8575f26070b100fccb67faabb28f21f66f8", - "reference": "aa4be8575f26070b100fccb67faabb28f21f66f8", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", + "reference": "cf1c2e7c203ac650e352f4cc675a7021e7d1b3cf", "shasum": "" }, "require": { @@ -2644,7 +2741,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", - "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.5" + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" }, "funding": [ { @@ -2652,7 +2749,7 @@ "type": "github" } ], - "time": "2020-09-28T05:57:25+00:00" + "time": "2021-12-02T12:48:52+00:00" }, { "name": "phpunit/php-invoker", @@ -2837,16 +2934,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.5.6", + "version": "9.5.10", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "fb9b8333f14e3dce976a60ef6a7e05c7c7ed8bfb" + "reference": "c814a05837f2edb0d1471d6e3f4ab3501ca3899a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/fb9b8333f14e3dce976a60ef6a7e05c7c7ed8bfb", - "reference": "fb9b8333f14e3dce976a60ef6a7e05c7c7ed8bfb", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c814a05837f2edb0d1471d6e3f4ab3501ca3899a", + "reference": "c814a05837f2edb0d1471d6e3f4ab3501ca3899a", "shasum": "" }, "require": { @@ -2858,11 +2955,11 @@ "ext-xml": "*", "ext-xmlwriter": "*", "myclabs/deep-copy": "^1.10.1", - "phar-io/manifest": "^2.0.1", + "phar-io/manifest": "^2.0.3", "phar-io/version": "^3.0.2", "php": ">=7.3", "phpspec/prophecy": "^1.12.1", - "phpunit/php-code-coverage": "^9.2.3", + "phpunit/php-code-coverage": "^9.2.7", "phpunit/php-file-iterator": "^3.0.5", "phpunit/php-invoker": "^3.1.1", "phpunit/php-text-template": "^2.0.3", @@ -2924,7 +3021,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.6" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.10" }, "funding": [ { @@ -2936,7 +3033,7 @@ "type": "github" } ], - "time": "2021-06-23T05:14:38+00:00" + "time": "2021-09-25T07:38:51+00:00" }, { "name": "psr/cache", @@ -2989,22 +3086,27 @@ }, { "name": "psr/container", - "version": "1.1.1", + "version": "2.0.2", "source": { "type": "git", "url": "https://github.com/php-fig/container.git", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", "shasum": "" }, "require": { - "php": ">=7.2.0" + "php": ">=7.4.0" }, "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, "autoload": { "psr-4": { "Psr\\Container\\": "src/" @@ -3031,9 +3133,9 @@ ], "support": { "issues": "https://github.com/php-fig/container/issues", - "source": "https://github.com/php-fig/container/tree/1.1.1" + "source": "https://github.com/php-fig/container/tree/2.0.2" }, - "time": "2021-03-05T17:36:06+00:00" + "time": "2021-11-05T16:47:00+00:00" }, { "name": "psr/log", @@ -3087,28 +3189,28 @@ }, { "name": "roave/infection-static-analysis-plugin", - "version": "1.8.0", + "version": "1.12.0", "source": { "type": "git", "url": "https://github.com/Roave/infection-static-analysis-plugin.git", - "reference": "c1e5428a85ff24fa4ca75ac43f29c608d02379fe" + "reference": "8390a8ab36a4b73eef8ce3c270964c21e3c831b1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Roave/infection-static-analysis-plugin/zipball/c1e5428a85ff24fa4ca75ac43f29c608d02379fe", - "reference": "c1e5428a85ff24fa4ca75ac43f29c608d02379fe", + "url": "https://api.github.com/repos/Roave/infection-static-analysis-plugin/zipball/8390a8ab36a4b73eef8ce3c270964c21e3c831b1", + "reference": "8390a8ab36a4b73eef8ce3c270964c21e3c831b1", "shasum": "" }, "require": { - "infection/infection": "0.23.0", + "infection/infection": "0.25.3", "ocramius/package-versions": "^1.9.0 || ^2.0.0", - "php": "~7.4.7|~8.0.0", + "php": "~7.4.7|~8.0.0|~8.1.0", "sanmai/later": "^0.1.2", - "vimeo/psalm": "^4.7.2" + "vimeo/psalm": "^4.13.1" }, "require-dev": { "doctrine/coding-standard": "^9.0.0", - "phpunit/phpunit": "^9.5.4" + "phpunit/phpunit": "^9.5.9" }, "bin": [ "bin/roave-infection-static-analysis-plugin" @@ -3132,9 +3234,9 @@ "description": "Static analysis on top of mutation testing - prevents escaped mutants from being invalid according to static analysis", "support": { "issues": "https://github.com/Roave/infection-static-analysis-plugin/issues", - "source": "https://github.com/Roave/infection-static-analysis-plugin/tree/1.8.0" + "source": "https://github.com/Roave/infection-static-analysis-plugin/tree/1.12.0" }, - "time": "2021-05-13T19:12:14+00:00" + "time": "2021-11-30T01:18:25+00:00" }, { "name": "sanmai/later", @@ -3196,16 +3298,16 @@ }, { "name": "sanmai/pipeline", - "version": "v5.1.0", + "version": "v5.2.1", "source": { "type": "git", "url": "https://github.com/sanmai/pipeline.git", - "reference": "f935e10ddcb758c89829e7b69cfb1dc2b2638518" + "reference": "2b5509a7635143165041109eb1c393c8515724f1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sanmai/pipeline/zipball/f935e10ddcb758c89829e7b69cfb1dc2b2638518", - "reference": "f935e10ddcb758c89829e7b69cfb1dc2b2638518", + "url": "https://api.github.com/repos/sanmai/pipeline/zipball/2b5509a7635143165041109eb1c393c8515724f1", + "reference": "2b5509a7635143165041109eb1c393c8515724f1", "shasum": "" }, "require": { @@ -3213,14 +3315,14 @@ }, "require-dev": { "ergebnis/composer-normalize": "^2.8", - "friendsofphp/php-cs-fixer": "^2.16", + "friendsofphp/php-cs-fixer": "^3", "infection/infection": ">=0.10.5", "league/pipeline": "^1.0 || ^0.3", - "phan/phan": "^1.1 || ^2.0 || ^3.0", + "phan/phan": ">=1.1", "php-coveralls/php-coveralls": "^2.4.1", "phpstan/phpstan": ">=0.10", "phpunit/phpunit": "^7.4 || ^8.1 || ^9.4", - "vimeo/psalm": "^2.0 || ^3.0 || ^4.0" + "vimeo/psalm": ">=2" }, "type": "library", "extra": { @@ -3249,7 +3351,7 @@ "description": "General-purpose collections pipeline", "support": { "issues": "https://github.com/sanmai/pipeline/issues", - "source": "https://github.com/sanmai/pipeline/tree/v5.1.0" + "source": "https://github.com/sanmai/pipeline/tree/v5.2.1" }, "funding": [ { @@ -3257,7 +3359,7 @@ "type": "github" } ], - "time": "2020-10-25T15:20:56+00:00" + "time": "2021-11-01T10:09:55+00:00" }, { "name": "sebastian/cli-parser", @@ -3688,16 +3790,16 @@ }, { "name": "sebastian/exporter", - "version": "4.0.3", + "version": "4.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65" + "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/d89cc98761b8cb5a1a235a6b703ae50d34080e65", - "reference": "d89cc98761b8cb5a1a235a6b703ae50d34080e65", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/65e8b7db476c5dd267e65eea9cab77584d3cfff9", + "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9", "shasum": "" }, "require": { @@ -3746,14 +3848,14 @@ } ], "description": "Provides the functionality to export PHP variables for visualization", - "homepage": "http://www.github.com/sebastianbergmann/exporter", + "homepage": "https://www.github.com/sebastianbergmann/exporter", "keywords": [ "export", "exporter" ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.3" + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.4" }, "funding": [ { @@ -3761,7 +3863,7 @@ "type": "github" } ], - "time": "2020-09-28T05:24:23+00:00" + "time": "2021-11-11T14:18:36+00:00" }, { "name": "sebastian/global-state", @@ -4288,32 +4390,32 @@ }, { "name": "slevomat/coding-standard", - "version": "7.0.12", + "version": "7.0.18", "source": { "type": "git", "url": "https://github.com/slevomat/coding-standard.git", - "reference": "5716052725863953ddc2f8a7e934c09cb64bdf73" + "reference": "b81ac84f41a4797dc25c8ede1b0718e2a74be0fc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/5716052725863953ddc2f8a7e934c09cb64bdf73", - "reference": "5716052725863953ddc2f8a7e934c09cb64bdf73", + "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/b81ac84f41a4797dc25c8ede1b0718e2a74be0fc", + "reference": "b81ac84f41a4797dc25c8ede1b0718e2a74be0fc", "shasum": "" }, "require": { "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7", "php": "^7.1 || ^8.0", - "phpstan/phpdoc-parser": "0.5.1 - 0.5.5", - "squizlabs/php_codesniffer": "^3.6.0" + "phpstan/phpdoc-parser": "^1.0.0", + "squizlabs/php_codesniffer": "^3.6.1" }, "require-dev": { - "phing/phing": "2.16.4", - "php-parallel-lint/php-parallel-lint": "1.3.0", - "phpstan/phpstan": "0.12.91", - "phpstan/phpstan-deprecation-rules": "0.12.6", - "phpstan/phpstan-phpunit": "0.12.20", - "phpstan/phpstan-strict-rules": "0.12.10", - "phpunit/phpunit": "7.5.20|8.5.5|9.5.6" + "phing/phing": "2.17.0", + "php-parallel-lint/php-parallel-lint": "1.3.1", + "phpstan/phpstan": "1.2.0", + "phpstan/phpstan-deprecation-rules": "1.0.0", + "phpstan/phpstan-phpunit": "1.0.0", + "phpstan/phpstan-strict-rules": "1.1.0", + "phpunit/phpunit": "7.5.20|8.5.21|9.5.10" }, "type": "phpcodesniffer-standard", "extra": { @@ -4333,7 +4435,7 @@ "description": "Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.", "support": { "issues": "https://github.com/slevomat/coding-standard/issues", - "source": "https://github.com/slevomat/coding-standard/tree/7.0.12" + "source": "https://github.com/slevomat/coding-standard/tree/7.0.18" }, "funding": [ { @@ -4345,20 +4447,20 @@ "type": "tidelift" } ], - "time": "2021-07-13T17:47:03+00:00" + "time": "2021-12-07T17:19:06+00:00" }, { "name": "squizlabs/php_codesniffer", - "version": "3.6.0", + "version": "3.6.2", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625" + "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/ffced0d2c8fa8e6cdc4d695a743271fab6c38625", - "reference": "ffced0d2c8fa8e6cdc4d695a743271fab6c38625", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/5e4e71592f69da17871dba6e80dd51bce74a351a", + "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a", "shasum": "" }, "require": { @@ -4401,39 +4503,39 @@ "source": "https://github.com/squizlabs/PHP_CodeSniffer", "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" }, - "time": "2021-04-09T00:54:41+00:00" + "time": "2021-12-12T21:44:58+00:00" }, { "name": "symfony/config", - "version": "v5.3.3", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "a69e0c55528b47df88d3c4067ddedf32d485d662" + "reference": "e39cf688c80fd79ab0a6a2d05a9facac9b2d534b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/a69e0c55528b47df88d3c4067ddedf32d485d662", - "reference": "a69e0c55528b47df88d3c4067ddedf32d485d662", + "url": "https://api.github.com/repos/symfony/config/zipball/e39cf688c80fd79ab0a6a2d05a9facac9b2d534b", + "reference": "e39cf688c80fd79ab0a6a2d05a9facac9b2d534b", "shasum": "" }, "require": { "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1", - "symfony/filesystem": "^4.4|^5.0", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/filesystem": "^4.4|^5.0|^6.0", "symfony/polyfill-ctype": "~1.8", - "symfony/polyfill-php80": "^1.15", + "symfony/polyfill-php80": "^1.16", "symfony/polyfill-php81": "^1.22" }, "conflict": { "symfony/finder": "<4.4" }, "require-dev": { - "symfony/event-dispatcher": "^4.4|^5.0", - "symfony/finder": "^4.4|^5.0", - "symfony/messenger": "^4.4|^5.0", - "symfony/service-contracts": "^1.1|^2", - "symfony/yaml": "^4.4|^5.0" + "symfony/event-dispatcher": "^4.4|^5.0|^6.0", + "symfony/finder": "^4.4|^5.0|^6.0", + "symfony/messenger": "^4.4|^5.0|^6.0", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/yaml": "^4.4|^5.0|^6.0" }, "suggest": { "symfony/yaml": "To use the yaml reference dumper" @@ -4464,7 +4566,7 @@ "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/config/tree/v5.3.3" + "source": "https://github.com/symfony/config/tree/v5.4.0" }, "funding": [ { @@ -4480,32 +4582,33 @@ "type": "tidelift" } ], - "time": "2021-06-24T08:13:00+00:00" + "time": "2021-11-28T15:25:38+00:00" }, { "name": "symfony/console", - "version": "v5.3.2", + "version": "v5.4.1", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "649730483885ff2ca99ca0560ef0e5f6b03f2ac1" + "reference": "9130e1a0fc93cb0faadca4ee917171bd2ca9e5f4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/649730483885ff2ca99ca0560ef0e5f6b03f2ac1", - "reference": "649730483885ff2ca99ca0560ef0e5f6b03f2ac1", + "url": "https://api.github.com/repos/symfony/console/zipball/9130e1a0fc93cb0faadca4ee917171bd2ca9e5f4", + "reference": "9130e1a0fc93cb0faadca4ee917171bd2ca9e5f4", "shasum": "" }, "require": { "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1", + "symfony/deprecation-contracts": "^2.1|^3", "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php73": "^1.8", - "symfony/polyfill-php80": "^1.15", - "symfony/service-contracts": "^1.1|^2", - "symfony/string": "^5.1" + "symfony/polyfill-php73": "^1.9", + "symfony/polyfill-php80": "^1.16", + "symfony/service-contracts": "^1.1|^2|^3", + "symfony/string": "^5.1|^6.0" }, "conflict": { + "psr/log": ">=3", "symfony/dependency-injection": "<4.4", "symfony/dotenv": "<5.1", "symfony/event-dispatcher": "<4.4", @@ -4513,16 +4616,16 @@ "symfony/process": "<4.4" }, "provide": { - "psr/log-implementation": "1.0" + "psr/log-implementation": "1.0|2.0" }, "require-dev": { - "psr/log": "~1.0", - "symfony/config": "^4.4|^5.0", - "symfony/dependency-injection": "^4.4|^5.0", - "symfony/event-dispatcher": "^4.4|^5.0", - "symfony/lock": "^4.4|^5.0", - "symfony/process": "^4.4|^5.0", - "symfony/var-dumper": "^4.4|^5.0" + "psr/log": "^1|^2", + "symfony/config": "^4.4|^5.0|^6.0", + "symfony/dependency-injection": "^4.4|^5.0|^6.0", + "symfony/event-dispatcher": "^4.4|^5.0|^6.0", + "symfony/lock": "^4.4|^5.0|^6.0", + "symfony/process": "^4.4|^5.0|^6.0", + "symfony/var-dumper": "^4.4|^5.0|^6.0" }, "suggest": { "psr/log": "For using the console logger", @@ -4562,7 +4665,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.3.2" + "source": "https://github.com/symfony/console/tree/v5.4.1" }, "funding": [ { @@ -4578,29 +4681,29 @@ "type": "tidelift" } ], - "time": "2021-06-12T09:42:48+00:00" + "time": "2021-12-09T11:22:43+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v2.4.0", + "version": "v3.0.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627" + "reference": "c726b64c1ccfe2896cb7df2e1331c357ad1c8ced" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/5f38c8804a9e97d23e0c8d63341088cd8a22d627", - "reference": "5f38c8804a9e97d23e0c8d63341088cd8a22d627", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/c726b64c1ccfe2896cb7df2e1331c357ad1c8ced", + "reference": "c726b64c1ccfe2896cb7df2e1331c357ad1c8ced", "shasum": "" }, "require": { - "php": ">=7.1" + "php": ">=8.0.2" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "2.4-dev" + "dev-main": "3.0-dev" }, "thanks": { "name": "symfony/contracts", @@ -4629,7 +4732,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.4.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.0" }, "funding": [ { @@ -4645,25 +4748,26 @@ "type": "tidelift" } ], - "time": "2021-03-23T23:28:01+00:00" + "time": "2021-11-01T23:48:49+00:00" }, { "name": "symfony/filesystem", - "version": "v4.4.26", + "version": "v4.4.27", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "a501126eb6ec9288a3434af01b3d4499ec1268a0" + "reference": "517fb795794faf29086a77d99eb8f35e457837a7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/a501126eb6ec9288a3434af01b3d4499ec1268a0", - "reference": "a501126eb6ec9288a3434af01b3d4499ec1268a0", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/517fb795794faf29086a77d99eb8f35e457837a7", + "reference": "517fb795794faf29086a77d99eb8f35e457837a7", "shasum": "" }, "require": { "php": ">=7.1.3", - "symfony/polyfill-ctype": "~1.8" + "symfony/polyfill-ctype": "~1.8", + "symfony/polyfill-php80": "^1.16" }, "type": "library", "autoload": { @@ -4691,7 +4795,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v4.4.26" + "source": "https://github.com/symfony/filesystem/tree/v4.4.27" }, "funding": [ { @@ -4707,24 +4811,26 @@ "type": "tidelift" } ], - "time": "2021-06-30T07:12:23+00:00" + "time": "2021-07-21T12:19:41+00:00" }, { "name": "symfony/finder", - "version": "v5.3.0", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "0ae3f047bed4edff6fd35b26a9a6bfdc92c953c6" + "reference": "d2f29dac98e96a98be467627bd49c2efb1bc2590" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/0ae3f047bed4edff6fd35b26a9a6bfdc92c953c6", - "reference": "0ae3f047bed4edff6fd35b26a9a6bfdc92c953c6", + "url": "https://api.github.com/repos/symfony/finder/zipball/d2f29dac98e96a98be467627bd49c2efb1bc2590", + "reference": "d2f29dac98e96a98be467627bd49c2efb1bc2590", "shasum": "" }, "require": { - "php": ">=7.2.5" + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-php80": "^1.16" }, "type": "library", "autoload": { @@ -4752,7 +4858,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.3.0" + "source": "https://github.com/symfony/finder/tree/v5.4.0" }, "funding": [ { @@ -4768,27 +4874,27 @@ "type": "tidelift" } ], - "time": "2021-05-26T12:52:38+00:00" + "time": "2021-11-28T15:25:38+00:00" }, { "name": "symfony/options-resolver", - "version": "v5.3.0", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "162e886ca035869866d233a2bfef70cc28f9bbe5" + "reference": "b0fb78576487af19c500aaddb269fd36701d4847" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/162e886ca035869866d233a2bfef70cc28f9bbe5", - "reference": "162e886ca035869866d233a2bfef70cc28f9bbe5", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/b0fb78576487af19c500aaddb269fd36701d4847", + "reference": "b0fb78576487af19c500aaddb269fd36701d4847", "shasum": "" }, "require": { "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1", + "symfony/deprecation-contracts": "^2.1|^3", "symfony/polyfill-php73": "~1.0", - "symfony/polyfill-php80": "^1.15" + "symfony/polyfill-php80": "^1.16" }, "type": "library", "autoload": { @@ -4821,7 +4927,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v5.3.0" + "source": "https://github.com/symfony/options-resolver/tree/v5.4.0" }, "funding": [ { @@ -4837,7 +4943,7 @@ "type": "tidelift" } ], - "time": "2021-05-26T17:43:10+00:00" + "time": "2021-11-23T10:19:22+00:00" }, { "name": "symfony/polyfill-ctype", @@ -4920,16 +5026,16 @@ }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.23.0", + "version": "v1.23.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "24b72c6baa32c746a4d0840147c9715e42bb68ab" + "reference": "16880ba9c5ebe3642d1995ab866db29270b36535" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/24b72c6baa32c746a4d0840147c9715e42bb68ab", - "reference": "24b72c6baa32c746a4d0840147c9715e42bb68ab", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/16880ba9c5ebe3642d1995ab866db29270b36535", + "reference": "16880ba9c5ebe3642d1995ab866db29270b36535", "shasum": "" }, "require": { @@ -4981,7 +5087,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.23.0" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.23.1" }, "funding": [ { @@ -4997,7 +5103,7 @@ "type": "tidelift" } ], - "time": "2021-05-27T09:17:38+00:00" + "time": "2021-05-27T12:26:48+00:00" }, { "name": "symfony/polyfill-intl-normalizer", @@ -5085,16 +5191,16 @@ }, { "name": "symfony/polyfill-mbstring", - "version": "v1.23.0", + "version": "v1.23.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "2df51500adbaebdc4c38dea4c89a2e131c45c8a1" + "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/2df51500adbaebdc4c38dea4c89a2e131c45c8a1", - "reference": "2df51500adbaebdc4c38dea4c89a2e131c45c8a1", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9174a3d80210dca8daa7f31fec659150bbeabfc6", + "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6", "shasum": "" }, "require": { @@ -5145,7 +5251,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.0" + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.1" }, "funding": [ { @@ -5161,7 +5267,7 @@ "type": "tidelift" } ], - "time": "2021-05-27T09:27:20+00:00" + "time": "2021-05-27T12:26:48+00:00" }, { "name": "symfony/polyfill-php73", @@ -5244,16 +5350,16 @@ }, { "name": "symfony/polyfill-php80", - "version": "v1.23.0", + "version": "v1.23.1", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "eca0bf41ed421bed1b57c4958bab16aa86b757d0" + "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/eca0bf41ed421bed1b57c4958bab16aa86b757d0", - "reference": "eca0bf41ed421bed1b57c4958bab16aa86b757d0", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be", + "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be", "shasum": "" }, "require": { @@ -5307,7 +5413,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.0" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.1" }, "funding": [ { @@ -5323,7 +5429,7 @@ "type": "tidelift" } ], - "time": "2021-02-19T12:13:01+00:00" + "time": "2021-07-28T13:41:28+00:00" }, { "name": "symfony/polyfill-php81", @@ -5406,21 +5512,21 @@ }, { "name": "symfony/process", - "version": "v5.3.2", + "version": "v5.4.0", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "714b47f9196de61a196d86c4bad5f09201b307df" + "reference": "5be20b3830f726e019162b26223110c8f47cf274" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/714b47f9196de61a196d86c4bad5f09201b307df", - "reference": "714b47f9196de61a196d86c4bad5f09201b307df", + "url": "https://api.github.com/repos/symfony/process/zipball/5be20b3830f726e019162b26223110c8f47cf274", + "reference": "5be20b3830f726e019162b26223110c8f47cf274", "shasum": "" }, "require": { "php": ">=7.2.5", - "symfony/polyfill-php80": "^1.15" + "symfony/polyfill-php80": "^1.16" }, "type": "library", "autoload": { @@ -5448,7 +5554,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v5.3.2" + "source": "https://github.com/symfony/process/tree/v5.4.0" }, "funding": [ { @@ -5464,25 +5570,28 @@ "type": "tidelift" } ], - "time": "2021-06-12T10:15:01+00:00" + "time": "2021-11-28T15:25:38+00:00" }, { "name": "symfony/service-contracts", - "version": "v2.4.0", + "version": "v3.0.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb" + "reference": "36715ebf9fb9db73db0cb24263c79077c6fe8603" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb", - "reference": "f040a30e04b57fbcc9c6cbcf4dbaa96bd318b9bb", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/36715ebf9fb9db73db0cb24263c79077c6fe8603", + "reference": "36715ebf9fb9db73db0cb24263c79077c6fe8603", "shasum": "" }, "require": { - "php": ">=7.2.5", - "psr/container": "^1.1" + "php": ">=8.0.2", + "psr/container": "^2.0" + }, + "conflict": { + "ext-psr": "<1.1|>=2" }, "suggest": { "symfony/service-implementation": "" @@ -5490,7 +5599,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "2.4-dev" + "dev-main": "3.0-dev" }, "thanks": { "name": "symfony/contracts", @@ -5527,7 +5636,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v2.4.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.0.0" }, "funding": [ { @@ -5543,35 +5652,37 @@ "type": "tidelift" } ], - "time": "2021-04-01T10:43:52+00:00" + "time": "2021-11-04T17:53:12+00:00" }, { "name": "symfony/string", - "version": "v5.3.3", + "version": "v6.0.1", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1" + "reference": "0cfed595758ec6e0a25591bdc8ca733c1896af32" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1", - "reference": "bd53358e3eccec6a670b5f33ab680d8dbe1d4ae1", + "url": "https://api.github.com/repos/symfony/string/zipball/0cfed595758ec6e0a25591bdc8ca733c1896af32", + "reference": "0cfed595758ec6e0a25591bdc8ca733c1896af32", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=8.0.2", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-intl-grapheme": "~1.0", "symfony/polyfill-intl-normalizer": "~1.0", - "symfony/polyfill-mbstring": "~1.0", - "symfony/polyfill-php80": "~1.15" + "symfony/polyfill-mbstring": "~1.0" + }, + "conflict": { + "symfony/translation-contracts": "<2.0" }, "require-dev": { - "symfony/error-handler": "^4.4|^5.0", - "symfony/http-client": "^4.4|^5.0", - "symfony/translation-contracts": "^1.1|^2", - "symfony/var-exporter": "^4.4|^5.0" + "symfony/error-handler": "^5.4|^6.0", + "symfony/http-client": "^5.4|^6.0", + "symfony/translation-contracts": "^2.0|^3.0", + "symfony/var-exporter": "^5.4|^6.0" }, "type": "library", "autoload": { @@ -5610,7 +5721,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v5.3.3" + "source": "https://github.com/symfony/string/tree/v6.0.1" }, "funding": [ { @@ -5626,7 +5737,7 @@ "type": "tidelift" } ], - "time": "2021-06-27T11:44:38+00:00" + "time": "2021-12-08T15:13:44+00:00" }, { "name": "thecodingmachine/safe", @@ -5769,16 +5880,16 @@ }, { "name": "theseer/tokenizer", - "version": "1.2.0", + "version": "1.2.1", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "75a63c33a8577608444246075ea0af0d052e452a" + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/75a63c33a8577608444246075ea0af0d052e452a", - "reference": "75a63c33a8577608444246075ea0af0d052e452a", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", + "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", "shasum": "" }, "require": { @@ -5807,7 +5918,7 @@ "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", "support": { "issues": "https://github.com/theseer/tokenizer/issues", - "source": "https://github.com/theseer/tokenizer/tree/master" + "source": "https://github.com/theseer/tokenizer/tree/1.2.1" }, "funding": [ { @@ -5815,20 +5926,20 @@ "type": "github" } ], - "time": "2020-07-12T23:59:07+00:00" + "time": "2021-07-28T10:34:58+00:00" }, { "name": "twig/twig", - "version": "v2.14.6", + "version": "v2.14.8", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "27e5cf2b05e3744accf39d4c68a3235d9966d260" + "reference": "06b450a2326aa879faa2061ff72fe1588b3ab043" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/27e5cf2b05e3744accf39d4c68a3235d9966d260", - "reference": "27e5cf2b05e3744accf39d4c68a3235d9966d260", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/06b450a2326aa879faa2061ff72fe1588b3ab043", + "reference": "06b450a2326aa879faa2061ff72fe1588b3ab043", "shasum": "" }, "require": { @@ -5838,7 +5949,7 @@ }, "require-dev": { "psr/container": "^1.0", - "symfony/phpunit-bridge": "^4.4.9|^5.0.9" + "symfony/phpunit-bridge": "^4.4.9|^5.0.9|^6.0" }, "type": "library", "extra": { @@ -5882,7 +5993,7 @@ ], "support": { "issues": "https://github.com/twigphp/Twig/issues", - "source": "https://github.com/twigphp/Twig/tree/v2.14.6" + "source": "https://github.com/twigphp/Twig/tree/v2.14.8" }, "funding": [ { @@ -5894,20 +6005,20 @@ "type": "tidelift" } ], - "time": "2021-05-16T12:12:47+00:00" + "time": "2021-11-25T13:38:06+00:00" }, { "name": "vimeo/psalm", - "version": "4.8.1", + "version": "v4.15.0", "source": { "type": "git", "url": "https://github.com/vimeo/psalm.git", - "reference": "f73f2299dbc59a3e6c4d66cff4605176e728ee69" + "reference": "a1b5e489e6fcebe40cb804793d964e99fc347820" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vimeo/psalm/zipball/f73f2299dbc59a3e6c4d66cff4605176e728ee69", - "reference": "f73f2299dbc59a3e6c4d66cff4605176e728ee69", + "url": "https://api.github.com/repos/vimeo/psalm/zipball/a1b5e489e6fcebe40cb804793d964e99fc347820", + "reference": "a1b5e489e6fcebe40cb804793d964e99fc347820", "shasum": "" }, "require": { @@ -5917,6 +6028,7 @@ "composer/semver": "^1.4 || ^2.0 || ^3.0", "composer/xdebug-handler": "^1.1 || ^2.0", "dnoegel/php-xdg-base-dir": "^0.1.1", + "ext-ctype": "*", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", @@ -5926,11 +6038,11 @@ "felixfbecker/advanced-json-rpc": "^3.0.3", "felixfbecker/language-server-protocol": "^1.5", "netresearch/jsonmapper": "^1.0 || ^2.0 || ^3.0 || ^4.0", - "nikic/php-parser": "^4.10.5", + "nikic/php-parser": "^4.13", "openlss/lib-array2xml": "^1.0", "php": "^7.1|^8", "sebastian/diff": "^3.0 || ^4.0", - "symfony/console": "^3.4.17 || ^4.1.6 || ^5.0", + "symfony/console": "^3.4.17 || ^4.1.6 || ^5.0 || ^6.0", "webmozart/path-util": "^2.3" }, "provide": { @@ -5948,12 +6060,12 @@ "psalm/plugin-phpunit": "^0.16", "slevomat/coding-standard": "^7.0", "squizlabs/php_codesniffer": "^3.5", - "symfony/process": "^4.3 || ^5.0", - "weirdan/phpunit-appveyor-reporter": "^1.0.0", + "symfony/process": "^4.3 || ^5.0 || ^6.0", "weirdan/prophecy-shim": "^1.0 || ^2.0" }, "suggest": { - "ext-igbinary": "^2.0.5" + "ext-curl": "In order to send data to shepherd", + "ext-igbinary": "^2.0.5 is required, used to serialize caching data" }, "bin": [ "psalm", @@ -5997,9 +6109,9 @@ ], "support": { "issues": "https://github.com/vimeo/psalm/issues", - "source": "https://github.com/vimeo/psalm/tree/4.8.1" + "source": "https://github.com/vimeo/psalm/tree/v4.15.0" }, - "time": "2021-06-20T23:03:20+00:00" + "time": "2021-12-07T11:25:29+00:00" }, { "name": "webmozart/assert", @@ -6107,6 +6219,7 @@ "issues": "https://github.com/webmozart/path-util/issues", "source": "https://github.com/webmozart/path-util/tree/2.3.0" }, + "abandoned": "symfony/filesystem", "time": "2015-12-17T08:42:14+00:00" } ], @@ -6116,7 +6229,7 @@ "prefer-stable": false, "prefer-lowest": false, "platform": { - "php": "~8.0.0", + "php": ">=8.0.0", "composer-runtime-api": "^2.1.0" }, "platform-dev": { From 2a0b09a518a2de09bd10d5cf174cfd616f9281bd Mon Sep 17 00:00:00 2001 From: petr-buchin Date: Mon, 31 Jan 2022 19:08:41 +0200 Subject: [PATCH 17/19] Bump PHP version to 8.00 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 3dbd228b9..279f735cc 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ } ], "require": { - "php": ">=8.0.0", + "php": "~8.0.0", "composer-runtime-api": "^2.1.0", "laminas/laminas-code": "^4.4.2", "webimpress/safe-writer": "^2.2.0" From 598a66fcfce4781da369302673ea4470db1efd9e Mon Sep 17 00:00:00 2001 From: petr-buchin Date: Mon, 31 Jan 2022 21:00:44 +0200 Subject: [PATCH 18/19] CS fixes --- .../AccessInterceptorScopeLocalizerFunctionalTest.php | 1 - .../ProxyGenerator/AccessInterceptorScopeLocalizerTest.php | 2 -- 2 files changed, 3 deletions(-) diff --git a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php index 1d8a2740b..f05da3de9 100644 --- a/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php +++ b/tests/ProxyManagerTest/Functional/AccessInterceptorScopeLocalizerFunctionalTest.php @@ -22,7 +22,6 @@ use ProxyManagerTestAsset\ClassWithParentHint; use ProxyManagerTestAsset\ClassWithPublicArrayPropertyAccessibleViaMethod; use ProxyManagerTestAsset\ClassWithPublicProperties; -use ProxyManagerTestAsset\ClassWithPublicStringNullableTypedProperty; use ProxyManagerTestAsset\ClassWithSelfHint; use ProxyManagerTestAsset\EmptyClass; use ProxyManagerTestAsset\VoidCounter; diff --git a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizerTest.php b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizerTest.php index 519cd9a7e..8430a37a3 100644 --- a/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizerTest.php +++ b/tests/ProxyManagerTest/ProxyGenerator/AccessInterceptorScopeLocalizerTest.php @@ -6,12 +6,10 @@ use Laminas\Code\Generator\ClassGenerator; use ProxyManager\Exception\InvalidProxiedClassException; -use ProxyManager\Exception\UnsupportedProxiedClassException; use ProxyManager\Proxy\AccessInterceptorInterface; use ProxyManager\ProxyGenerator\AccessInterceptorScopeLocalizerGenerator; use ProxyManager\ProxyGenerator\ProxyGeneratorInterface; use ProxyManagerTestAsset\BaseInterface; -use ProxyManagerTestAsset\ClassWithMixedTypedProperties; use ReflectionClass; /** From a580ed927c9ddaeb6ebc667b8fcc1cb98f03ab96 Mon Sep 17 00:00:00 2001 From: petr-buchin Date: Fri, 30 Dec 2022 00:58:43 +0200 Subject: [PATCH 19/19] Fixed PHP version requirement --- composer.json | 2 +- composer.lock | 1423 +++++++++++++++++++++++++++---------------------- 2 files changed, 780 insertions(+), 645 deletions(-) diff --git a/composer.json b/composer.json index 279f735cc..3dbd228b9 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ } ], "require": { - "php": "~8.0.0", + "php": ">=8.0.0", "composer-runtime-api": "^2.1.0", "laminas/laminas-code": "^4.4.2", "webimpress/safe-writer": "^2.2.0" diff --git a/composer.lock b/composer.lock index 5da90fd16..4179c5653 100644 --- a/composer.lock +++ b/composer.lock @@ -8,29 +8,29 @@ "packages": [ { "name": "laminas/laminas-code", - "version": "4.5.0", + "version": "4.8.0", "source": { "type": "git", "url": "https://github.com/laminas/laminas-code.git", - "reference": "c99ef8e5629c33bfaa3a8f1df773e916af564cd6" + "reference": "dd19fe8e07cc3f374308565667eecd4958c22106" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/laminas/laminas-code/zipball/c99ef8e5629c33bfaa3a8f1df773e916af564cd6", - "reference": "c99ef8e5629c33bfaa3a8f1df773e916af564cd6", + "url": "https://api.github.com/repos/laminas/laminas-code/zipball/dd19fe8e07cc3f374308565667eecd4958c22106", + "reference": "dd19fe8e07cc3f374308565667eecd4958c22106", "shasum": "" }, "require": { - "php": ">=7.4, <8.2" + "php": "~8.1.0 || ~8.2.0" }, "require-dev": { - "doctrine/annotations": "^1.13.2", + "doctrine/annotations": "^1.13.3", "ext-phar": "*", "laminas/laminas-coding-standard": "^2.3.0", "laminas/laminas-stdlib": "^3.6.1", - "phpunit/phpunit": "^9.5.10", - "psalm/plugin-phpunit": "^0.16.1", - "vimeo/psalm": "^4.13.1" + "phpunit/phpunit": "^9.5.26", + "psalm/plugin-phpunit": "^0.18.0", + "vimeo/psalm": "^5.1.0" }, "suggest": { "doctrine/annotations": "Doctrine\\Common\\Annotations >=1.0 for annotation features", @@ -40,10 +40,7 @@ "autoload": { "psr-4": { "Laminas\\Code\\": "src/" - }, - "files": [ - "polyfill/ReflectionEnumPolyfill.php" - ] + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -70,7 +67,7 @@ "type": "community_bridge" } ], - "time": "2021-12-07T06:00:32+00:00" + "time": "2022-12-08T02:08:23+00:00" }, { "name": "webimpress/safe-writer", @@ -135,16 +132,16 @@ "packages-dev": [ { "name": "amphp/amp", - "version": "v2.6.1", + "version": "v2.6.2", "source": { "type": "git", "url": "https://github.com/amphp/amp.git", - "reference": "c5fc66a78ee38d7ac9195a37bacaf940eb3f65ae" + "reference": "9d5100cebffa729aaffecd3ad25dc5aeea4f13bb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/amphp/amp/zipball/c5fc66a78ee38d7ac9195a37bacaf940eb3f65ae", - "reference": "c5fc66a78ee38d7ac9195a37bacaf940eb3f65ae", + "url": "https://api.github.com/repos/amphp/amp/zipball/9d5100cebffa729aaffecd3ad25dc5aeea4f13bb", + "reference": "9d5100cebffa729aaffecd3ad25dc5aeea4f13bb", "shasum": "" }, "require": { @@ -166,13 +163,13 @@ } }, "autoload": { - "psr-4": { - "Amp\\": "lib" - }, "files": [ "lib/functions.php", "lib/Internal/functions.php" - ] + ], + "psr-4": { + "Amp\\": "lib" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -197,7 +194,7 @@ } ], "description": "A non-blocking concurrency framework for PHP applications.", - "homepage": "http://amphp.org/amp", + "homepage": "https://amphp.org/amp", "keywords": [ "async", "asynchronous", @@ -212,7 +209,7 @@ "support": { "irc": "irc://irc.freenode.org/amphp", "issues": "https://github.com/amphp/amp/issues", - "source": "https://github.com/amphp/amp/tree/v2.6.1" + "source": "https://github.com/amphp/amp/tree/v2.6.2" }, "funding": [ { @@ -220,7 +217,7 @@ "type": "github" } ], - "time": "2021-09-23T18:43:08+00:00" + "time": "2022-02-20T17:52:18+00:00" }, { "name": "amphp/byte-stream", @@ -255,12 +252,12 @@ } }, "autoload": { - "psr-4": { - "Amp\\ByteStream\\": "lib" - }, "files": [ "lib/functions.php" - ] + ], + "psr-4": { + "Amp\\ByteStream\\": "lib" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -301,16 +298,16 @@ }, { "name": "beberlei/assert", - "version": "v3.3.1", + "version": "v3.3.2", "source": { "type": "git", "url": "https://github.com/beberlei/assert.git", - "reference": "5e721d7e937ca3ba2cdec1e1adf195f9e5188372" + "reference": "cb70015c04be1baee6f5f5c953703347c0ac1655" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/beberlei/assert/zipball/5e721d7e937ca3ba2cdec1e1adf195f9e5188372", - "reference": "5e721d7e937ca3ba2cdec1e1adf195f9e5188372", + "url": "https://api.github.com/repos/beberlei/assert/zipball/cb70015c04be1baee6f5f5c953703347c0ac1655", + "reference": "cb70015c04be1baee6f5f5c953703347c0ac1655", "shasum": "" }, "require": { @@ -331,12 +328,12 @@ }, "type": "library", "autoload": { - "psr-4": { - "Assert\\": "lib/Assert" - }, "files": [ "lib/Assert/functions.php" - ] + ], + "psr-4": { + "Assert\\": "lib/Assert" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -362,9 +359,9 @@ ], "support": { "issues": "https://github.com/beberlei/assert/issues", - "source": "https://github.com/beberlei/assert/tree/v3.3.1" + "source": "https://github.com/beberlei/assert/tree/v3.3.2" }, - "time": "2021-04-18T20:11:03+00:00" + "time": "2021-12-16T21:41:27+00:00" }, { "name": "codelicia/xulieta", @@ -449,16 +446,16 @@ }, { "name": "composer/package-versions-deprecated", - "version": "1.11.99.4", + "version": "1.11.99.5", "source": { "type": "git", "url": "https://github.com/composer/package-versions-deprecated.git", - "reference": "b174585d1fe49ceed21928a945138948cb394600" + "reference": "b4f54f74ef3453349c24a845d22392cd31e65f1d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/b174585d1fe49ceed21928a945138948cb394600", - "reference": "b174585d1fe49ceed21928a945138948cb394600", + "url": "https://api.github.com/repos/composer/package-versions-deprecated/zipball/b4f54f74ef3453349c24a845d22392cd31e65f1d", + "reference": "b4f54f74ef3453349c24a845d22392cd31e65f1d", "shasum": "" }, "require": { @@ -502,7 +499,7 @@ "description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)", "support": { "issues": "https://github.com/composer/package-versions-deprecated/issues", - "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.4" + "source": "https://github.com/composer/package-versions-deprecated/tree/1.11.99.5" }, "funding": [ { @@ -518,34 +515,34 @@ "type": "tidelift" } ], - "time": "2021-09-13T08:41:34+00:00" + "time": "2022-01-17T14:14:24+00:00" }, { "name": "composer/pcre", - "version": "1.0.0", + "version": "3.1.0", "source": { "type": "git", "url": "https://github.com/composer/pcre.git", - "reference": "3d322d715c43a1ac36c7fe215fa59336265500f2" + "reference": "4bff79ddd77851fe3cdd11616ed3f92841ba5bd2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/pcre/zipball/3d322d715c43a1ac36c7fe215fa59336265500f2", - "reference": "3d322d715c43a1ac36c7fe215fa59336265500f2", + "url": "https://api.github.com/repos/composer/pcre/zipball/4bff79ddd77851fe3cdd11616ed3f92841ba5bd2", + "reference": "4bff79ddd77851fe3cdd11616ed3f92841ba5bd2", "shasum": "" }, "require": { - "php": "^5.3.2 || ^7.0 || ^8.0" + "php": "^7.4 || ^8.0" }, "require-dev": { - "phpstan/phpstan": "^1", + "phpstan/phpstan": "^1.3", "phpstan/phpstan-strict-rules": "^1.1", - "symfony/phpunit-bridge": "^4.2 || ^5" + "symfony/phpunit-bridge": "^5" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.x-dev" + "dev-main": "3.x-dev" } }, "autoload": { @@ -573,7 +570,7 @@ ], "support": { "issues": "https://github.com/composer/pcre/issues", - "source": "https://github.com/composer/pcre/tree/1.0.0" + "source": "https://github.com/composer/pcre/tree/3.1.0" }, "funding": [ { @@ -589,27 +586,27 @@ "type": "tidelift" } ], - "time": "2021-12-06T15:17:27+00:00" + "time": "2022-11-17T09:50:14+00:00" }, { "name": "composer/semver", - "version": "3.2.6", + "version": "3.3.2", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "83e511e247de329283478496f7a1e114c9517506" + "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/83e511e247de329283478496f7a1e114c9517506", - "reference": "83e511e247de329283478496f7a1e114c9517506", + "url": "https://api.github.com/repos/composer/semver/zipball/3953f23262f2bff1919fc82183ad9acb13ff62c9", + "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9", "shasum": "" }, "require": { "php": "^5.3.2 || ^7.0 || ^8.0" }, "require-dev": { - "phpstan/phpstan": "^0.12.54", + "phpstan/phpstan": "^1.4", "symfony/phpunit-bridge": "^4.2 || ^5" }, "type": "library", @@ -654,7 +651,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/semver/issues", - "source": "https://github.com/composer/semver/tree/3.2.6" + "source": "https://github.com/composer/semver/tree/3.3.2" }, "funding": [ { @@ -670,31 +667,31 @@ "type": "tidelift" } ], - "time": "2021-10-25T11:34:17+00:00" + "time": "2022-04-01T19:23:25+00:00" }, { "name": "composer/xdebug-handler", - "version": "2.0.3", + "version": "3.0.3", "source": { "type": "git", "url": "https://github.com/composer/xdebug-handler.git", - "reference": "6555461e76962fd0379c444c46fd558a0fcfb65e" + "reference": "ced299686f41dce890debac69273b47ffe98a40c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/6555461e76962fd0379c444c46fd558a0fcfb65e", - "reference": "6555461e76962fd0379c444c46fd558a0fcfb65e", + "url": "https://api.github.com/repos/composer/xdebug-handler/zipball/ced299686f41dce890debac69273b47ffe98a40c", + "reference": "ced299686f41dce890debac69273b47ffe98a40c", "shasum": "" }, "require": { - "composer/pcre": "^1", - "php": "^5.3.2 || ^7.0 || ^8.0", + "composer/pcre": "^1 || ^2 || ^3", + "php": "^7.2.5 || ^8.0", "psr/log": "^1 || ^2 || ^3" }, "require-dev": { "phpstan/phpstan": "^1.0", "phpstan/phpstan-strict-rules": "^1.1", - "symfony/phpunit-bridge": "^4.2 || ^5.0 || ^6.0" + "symfony/phpunit-bridge": "^6.0" }, "type": "library", "autoload": { @@ -720,7 +717,7 @@ "support": { "irc": "irc://irc.freenode.org/composer", "issues": "https://github.com/composer/xdebug-handler/issues", - "source": "https://github.com/composer/xdebug-handler/tree/2.0.3" + "source": "https://github.com/composer/xdebug-handler/tree/3.0.3" }, "funding": [ { @@ -736,31 +733,31 @@ "type": "tidelift" } ], - "time": "2021-12-08T13:07:32+00:00" + "time": "2022-02-25T21:32:43+00:00" }, { "name": "dealerdirect/phpcodesniffer-composer-installer", - "version": "v0.7.1", + "version": "v0.7.2", "source": { "type": "git", "url": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer.git", - "reference": "fe390591e0241955f22eb9ba327d137e501c771c" + "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/fe390591e0241955f22eb9ba327d137e501c771c", - "reference": "fe390591e0241955f22eb9ba327d137e501c771c", + "url": "https://api.github.com/repos/Dealerdirect/phpcodesniffer-composer-installer/zipball/1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db", + "reference": "1c968e542d8843d7cd71de3c5c9c3ff3ad71a1db", "shasum": "" }, "require": { "composer-plugin-api": "^1.0 || ^2.0", "php": ">=5.3", - "squizlabs/php_codesniffer": "^2.0 || ^3.0 || ^4.0" + "squizlabs/php_codesniffer": "^2.0 || ^3.1.0 || ^4.0" }, "require-dev": { "composer/composer": "*", - "phpcompatibility/php-compatibility": "^9.0", - "sensiolabs/security-checker": "^4.1.0" + "php-parallel-lint/php-parallel-lint": "^1.3.1", + "phpcompatibility/php-compatibility": "^9.0" }, "type": "composer-plugin", "extra": { @@ -781,6 +778,10 @@ "email": "franck.nijhof@dealerdirect.com", "homepage": "http://www.frenck.nl", "role": "Developer / IT Manager" + }, + { + "name": "Contributors", + "homepage": "https://github.com/Dealerdirect/phpcodesniffer-composer-installer/graphs/contributors" } ], "description": "PHP_CodeSniffer Standards Composer Installer Plugin", @@ -792,6 +793,7 @@ "codesniffer", "composer", "installer", + "phpcbf", "phpcs", "plugin", "qa", @@ -806,7 +808,7 @@ "issues": "https://github.com/dealerdirect/phpcodesniffer-composer-installer/issues", "source": "https://github.com/dealerdirect/phpcodesniffer-composer-installer" }, - "time": "2020-12-07T18:04:37+00:00" + "time": "2022-02-04T12:51:07+00:00" }, { "name": "dnoegel/php-xdg-base-dir", @@ -847,30 +849,34 @@ }, { "name": "doctrine/annotations", - "version": "1.13.2", + "version": "1.14.2", "source": { "type": "git", "url": "https://github.com/doctrine/annotations.git", - "reference": "5b668aef16090008790395c02c893b1ba13f7e08" + "reference": "ad785217c1e9555a7d6c6c8c9f406395a5e2882b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/annotations/zipball/5b668aef16090008790395c02c893b1ba13f7e08", - "reference": "5b668aef16090008790395c02c893b1ba13f7e08", + "url": "https://api.github.com/repos/doctrine/annotations/zipball/ad785217c1e9555a7d6c6c8c9f406395a5e2882b", + "reference": "ad785217c1e9555a7d6c6c8c9f406395a5e2882b", "shasum": "" }, "require": { - "doctrine/lexer": "1.*", + "doctrine/lexer": "^1 || ^2", "ext-tokenizer": "*", "php": "^7.1 || ^8.0", "psr/cache": "^1 || ^2 || ^3" }, "require-dev": { "doctrine/cache": "^1.11 || ^2.0", - "doctrine/coding-standard": "^6.0 || ^8.1", - "phpstan/phpstan": "^0.12.20", - "phpunit/phpunit": "^7.5 || ^8.0 || ^9.1.5", - "symfony/cache": "^4.4 || ^5.2" + "doctrine/coding-standard": "^9 || ^10", + "phpstan/phpstan": "~1.4.10 || ^1.8.0", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "symfony/cache": "^4.4 || ^5.4 || ^6", + "vimeo/psalm": "^4.10" + }, + "suggest": { + "php": "PHP 8.0 or higher comes with attributes, a native replacement for annotations" }, "type": "library", "autoload": { @@ -913,13 +919,13 @@ ], "support": { "issues": "https://github.com/doctrine/annotations/issues", - "source": "https://github.com/doctrine/annotations/tree/1.13.2" + "source": "https://github.com/doctrine/annotations/tree/1.14.2" }, - "time": "2021-08-05T19:00:23+00:00" + "time": "2022-12-15T06:48:22+00:00" }, { "name": "doctrine/coding-standard", - "version": "9.0.0", + "version": "9.0.2", "source": { "type": "git", "url": "https://github.com/doctrine/coding-standard.git", @@ -968,43 +974,84 @@ ], "support": { "issues": "https://github.com/doctrine/coding-standard/issues", - "source": "https://github.com/doctrine/coding-standard/tree/9.0.0" + "source": "https://github.com/doctrine/coding-standard/tree/9.0.2" }, "time": "2021-04-12T15:11:14+00:00" }, + { + "name": "doctrine/deprecations", + "version": "v1.0.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/deprecations.git", + "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", + "reference": "0e2a4f1f8cdfc7a92ec3b01c9334898c806b30de", + "shasum": "" + }, + "require": { + "php": "^7.1|^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^9", + "phpunit/phpunit": "^7.5|^8.5|^9.5", + "psr/log": "^1|^2|^3" + }, + "suggest": { + "psr/log": "Allows logging deprecations via PSR-3 logger implementation" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Deprecations\\": "lib/Doctrine/Deprecations" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", + "homepage": "https://www.doctrine-project.org/", + "support": { + "issues": "https://github.com/doctrine/deprecations/issues", + "source": "https://github.com/doctrine/deprecations/tree/v1.0.0" + }, + "time": "2022-05-02T15:47:09+00:00" + }, { "name": "doctrine/event-manager", - "version": "1.1.1", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/doctrine/event-manager.git", - "reference": "41370af6a30faa9dc0368c4a6814d596e81aba7f" + "reference": "95aa4cb529f1e96576f3fda9f5705ada4056a520" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/event-manager/zipball/41370af6a30faa9dc0368c4a6814d596e81aba7f", - "reference": "41370af6a30faa9dc0368c4a6814d596e81aba7f", + "url": "https://api.github.com/repos/doctrine/event-manager/zipball/95aa4cb529f1e96576f3fda9f5705ada4056a520", + "reference": "95aa4cb529f1e96576f3fda9f5705ada4056a520", "shasum": "" }, "require": { + "doctrine/deprecations": "^0.5.3 || ^1", "php": "^7.1 || ^8.0" }, "conflict": { - "doctrine/common": "<2.9@dev" + "doctrine/common": "<2.9" }, "require-dev": { - "doctrine/coding-standard": "^6.0", - "phpunit/phpunit": "^7.0" + "doctrine/coding-standard": "^9 || ^10", + "phpstan/phpstan": "~1.4.10 || ^1.8.8", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.24" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0.x-dev" - } - }, "autoload": { "psr-4": { - "Doctrine\\Common\\": "lib/Doctrine/Common" + "Doctrine\\Common\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -1048,7 +1095,7 @@ ], "support": { "issues": "https://github.com/doctrine/event-manager/issues", - "source": "https://github.com/doctrine/event-manager/tree/1.1.x" + "source": "https://github.com/doctrine/event-manager/tree/1.2.0" }, "funding": [ { @@ -1064,33 +1111,34 @@ "type": "tidelift" } ], - "time": "2020-05-29T18:28:51+00:00" + "time": "2022-10-12T20:51:15+00:00" }, { "name": "doctrine/instantiator", - "version": "1.4.0", + "version": "1.4.1", "source": { "type": "git", "url": "https://github.com/doctrine/instantiator.git", - "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b" + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/instantiator/zipball/d56bf6102915de5702778fe20f2de3b2fe570b5b", - "reference": "d56bf6102915de5702778fe20f2de3b2fe570b5b", + "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc", + "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc", "shasum": "" }, "require": { "php": "^7.1 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^8.0", + "doctrine/coding-standard": "^9", "ext-pdo": "*", "ext-phar": "*", - "phpbench/phpbench": "^0.13 || 1.0.0-alpha2", - "phpstan/phpstan": "^0.12", - "phpstan/phpstan-phpunit": "^0.12", - "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" + "phpbench/phpbench": "^0.16 || ^1", + "phpstan/phpstan": "^1.4", + "phpstan/phpstan-phpunit": "^1", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "vimeo/psalm": "^4.22" }, "type": "library", "autoload": { @@ -1117,7 +1165,7 @@ ], "support": { "issues": "https://github.com/doctrine/instantiator/issues", - "source": "https://github.com/doctrine/instantiator/tree/1.4.0" + "source": "https://github.com/doctrine/instantiator/tree/1.4.1" }, "funding": [ { @@ -1133,39 +1181,37 @@ "type": "tidelift" } ], - "time": "2020-11-10T18:47:58+00:00" + "time": "2022-03-03T08:28:38+00:00" }, { "name": "doctrine/lexer", - "version": "1.2.1", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/doctrine/lexer.git", - "reference": "e864bbf5904cb8f5bb334f99209b48018522f042" + "reference": "39ab8fcf5a51ce4b85ca97c7a7d033eb12831124" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/e864bbf5904cb8f5bb334f99209b48018522f042", - "reference": "e864bbf5904cb8f5bb334f99209b48018522f042", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/39ab8fcf5a51ce4b85ca97c7a7d033eb12831124", + "reference": "39ab8fcf5a51ce4b85ca97c7a7d033eb12831124", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0" + "doctrine/deprecations": "^1.0", + "php": "^7.1 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^6.0", - "phpstan/phpstan": "^0.11.8", - "phpunit/phpunit": "^8.2" + "doctrine/coding-standard": "^9 || ^10", + "phpstan/phpstan": "^1.3", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "psalm/plugin-phpunit": "^0.18.3", + "vimeo/psalm": "^4.11 || ^5.0" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.2.x-dev" - } - }, "autoload": { "psr-4": { - "Doctrine\\Common\\Lexer\\": "lib/Doctrine/Common/Lexer" + "Doctrine\\Common\\Lexer\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -1197,7 +1243,7 @@ ], "support": { "issues": "https://github.com/doctrine/lexer/issues", - "source": "https://github.com/doctrine/lexer/tree/1.2.1" + "source": "https://github.com/doctrine/lexer/tree/2.1.0" }, "funding": [ { @@ -1213,7 +1259,7 @@ "type": "tidelift" } ], - "time": "2020-05-25T17:44:05+00:00" + "time": "2022-12-14T08:49:07+00:00" }, { "name": "doctrine/rst-parser", @@ -1330,16 +1376,16 @@ }, { "name": "felixfbecker/language-server-protocol", - "version": "1.5.1", + "version": "v1.5.2", "source": { "type": "git", "url": "https://github.com/felixfbecker/php-language-server-protocol.git", - "reference": "9d846d1f5cf101deee7a61c8ba7caa0a975cd730" + "reference": "6e82196ffd7c62f7794d778ca52b69feec9f2842" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/felixfbecker/php-language-server-protocol/zipball/9d846d1f5cf101deee7a61c8ba7caa0a975cd730", - "reference": "9d846d1f5cf101deee7a61c8ba7caa0a975cd730", + "url": "https://api.github.com/repos/felixfbecker/php-language-server-protocol/zipball/6e82196ffd7c62f7794d778ca52b69feec9f2842", + "reference": "6e82196ffd7c62f7794d778ca52b69feec9f2842", "shasum": "" }, "require": { @@ -1380,9 +1426,9 @@ ], "support": { "issues": "https://github.com/felixfbecker/php-language-server-protocol/issues", - "source": "https://github.com/felixfbecker/php-language-server-protocol/tree/1.5.1" + "source": "https://github.com/felixfbecker/php-language-server-protocol/tree/v1.5.2" }, - "time": "2021-02-22T14:02:09+00:00" + "time": "2022-03-02T22:36:06+00:00" }, { "name": "infection/abstract-testframework-adapter", @@ -1441,33 +1487,33 @@ }, { "name": "infection/extension-installer", - "version": "0.1.1", + "version": "0.1.2", "source": { "type": "git", "url": "https://github.com/infection/extension-installer.git", - "reference": "ff30c0adffcdbc747c96adf92382ccbe271d0afd" + "reference": "9b351d2910b9a23ab4815542e93d541e0ca0cdcf" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/infection/extension-installer/zipball/ff30c0adffcdbc747c96adf92382ccbe271d0afd", - "reference": "ff30c0adffcdbc747c96adf92382ccbe271d0afd", + "url": "https://api.github.com/repos/infection/extension-installer/zipball/9b351d2910b9a23ab4815542e93d541e0ca0cdcf", + "reference": "9b351d2910b9a23ab4815542e93d541e0ca0cdcf", "shasum": "" }, "require": { "composer-plugin-api": "^1.1 || ^2.0" }, "require-dev": { - "composer/composer": "^1.9", - "friendsofphp/php-cs-fixer": "^2.16", + "composer/composer": "^1.9 || ^2.0", + "friendsofphp/php-cs-fixer": "^2.18, <2.19", "infection/infection": "^0.15.2", - "php-coveralls/php-coveralls": "^2.2", + "php-coveralls/php-coveralls": "^2.4", "phpstan/extension-installer": "^1.0", "phpstan/phpstan": "^0.12.10", "phpstan/phpstan-phpunit": "^0.12.6", "phpstan/phpstan-strict-rules": "^0.12.2", "phpstan/phpstan-webmozart-assert": "^0.12.2", - "phpunit/phpunit": "^8.5", - "vimeo/psalm": "^3.8" + "phpunit/phpunit": "^9.5", + "vimeo/psalm": "^4.8" }, "type": "composer-plugin", "extra": { @@ -1491,9 +1537,19 @@ "description": "Infection Extension Installer", "support": { "issues": "https://github.com/infection/extension-installer/issues", - "source": "https://github.com/infection/extension-installer/tree/0.1.1" + "source": "https://github.com/infection/extension-installer/tree/0.1.2" }, - "time": "2020-04-25T22:40:05+00:00" + "funding": [ + { + "url": "https://github.com/infection", + "type": "github" + }, + { + "url": "https://opencollective.com/infection", + "type": "open_collective" + } + ], + "time": "2021-10-20T22:08:34+00:00" }, { "name": "infection/include-interceptor", @@ -1553,21 +1609,21 @@ }, { "name": "infection/infection", - "version": "0.25.3", + "version": "0.26.10", "source": { "type": "git", "url": "https://github.com/infection/infection.git", - "reference": "f7a1af285476eeef7e72cedcfd69fa11fbb61c71" + "reference": "134853ce500c4669db7d6f9fe03ea5c8771a4540" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/infection/infection/zipball/f7a1af285476eeef7e72cedcfd69fa11fbb61c71", - "reference": "f7a1af285476eeef7e72cedcfd69fa11fbb61c71", + "url": "https://api.github.com/repos/infection/infection/zipball/134853ce500c4669db7d6f9fe03ea5c8771a4540", + "reference": "134853ce500c4669db7d6f9fe03ea5c8771a4540", "shasum": "" }, "require": { "composer-runtime-api": "^2.0", - "composer/xdebug-handler": "^2.0", + "composer/xdebug-handler": "^2.0 || ^3.0", "ext-dom": "*", "ext-json": "*", "ext-libxml": "*", @@ -1575,39 +1631,39 @@ "infection/extension-installer": "^0.1.0", "infection/include-interceptor": "^0.2.5", "justinrainbow/json-schema": "^5.2.10", - "nikic/php-parser": "^4.10.3", - "ondram/ci-detector": "^3.3.0", - "php": "^7.4.7 || ^8.0", + "nikic/php-parser": "^4.13.2", + "ondram/ci-detector": "^4.1.0", + "php": "^8.0", "sanmai/later": "^0.1.1", - "sanmai/pipeline": "^5.1", + "sanmai/pipeline": "^5.1 || ^6", "sebastian/diff": "^3.0.2 || ^4.0", "seld/jsonlint": "^1.7", - "symfony/console": "^3.4.29 || ^4.1.19 || ^5.0", - "symfony/filesystem": "^3.4.29 || ^4.1.19 || ^5.0", - "symfony/finder": "^3.4.29 || ^4.1.19 || ^5.0", - "symfony/process": "^3.4.29 || ^4.1.19 || ^5.0", - "thecodingmachine/safe": "^1.1.3", + "symfony/console": "^3.4.29 || ^4.1.19 || ^5.0 || ^6.0", + "symfony/filesystem": "^3.4.29 || ^4.1.19 || ^5.0 || ^6.0", + "symfony/finder": "^3.4.29 || ^4.1.19 || ^5.0 || ^6.0", + "symfony/process": "^3.4.29 || ^4.1.19 || ^5.0 || ^6.0", + "thecodingmachine/safe": "^2.1.2", "webmozart/assert": "^1.3", "webmozart/path-util": "^2.3" }, "conflict": { - "phpunit/php-code-coverage": ">9 <9.1.4", - "symfony/console": "=4.1.5" + "dg/bypass-finals": "*", + "phpunit/php-code-coverage": ">9 <9.1.4" }, "require-dev": { "brianium/paratest": "^6.3", "ext-simplexml": "*", "helmich/phpunit-json-assert": "^3.0", "phpspec/prophecy-phpunit": "^2.0", - "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^0.12.8", - "phpstan/phpstan-phpunit": "^0.12.6", - "phpstan/phpstan-strict-rules": "^0.12.5", - "phpstan/phpstan-webmozart-assert": "^0.12.2", - "phpunit/phpunit": "^9.3.11", + "phpstan/extension-installer": "^1.1.0", + "phpstan/phpstan": "^1.3.0", + "phpstan/phpstan-phpunit": "^1.0.0", + "phpstan/phpstan-strict-rules": "^1.1.0", + "phpstan/phpstan-webmozart-assert": "^1.0.2", + "phpunit/phpunit": "^9.5.5", "symfony/phpunit-bridge": "^4.4.18 || ^5.1.10", "symfony/yaml": "^5.0", - "thecodingmachine/phpstan-safe-rule": "^1.0" + "thecodingmachine/phpstan-safe-rule": "^1.2.0" }, "bin": [ "bin/infection" @@ -1663,7 +1719,7 @@ ], "support": { "issues": "https://github.com/infection/infection/issues", - "source": "https://github.com/infection/infection/tree/0.25.3" + "source": "https://github.com/infection/infection/tree/0.26.10" }, "funding": [ { @@ -1675,20 +1731,20 @@ "type": "open_collective" } ], - "time": "2021-10-02T13:16:05+00:00" + "time": "2022-05-11T20:58:00+00:00" }, { "name": "justinrainbow/json-schema", - "version": "5.2.11", + "version": "5.2.12", "source": { "type": "git", "url": "https://github.com/justinrainbow/json-schema.git", - "reference": "2ab6744b7296ded80f8cc4f9509abbff393399aa" + "reference": "ad87d5a5ca981228e0e205c2bc7dfb8e24559b60" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/2ab6744b7296ded80f8cc4f9509abbff393399aa", - "reference": "2ab6744b7296ded80f8cc4f9509abbff393399aa", + "url": "https://api.github.com/repos/justinrainbow/json-schema/zipball/ad87d5a5ca981228e0e205c2bc7dfb8e24559b60", + "reference": "ad87d5a5ca981228e0e205c2bc7dfb8e24559b60", "shasum": "" }, "require": { @@ -1743,43 +1799,44 @@ ], "support": { "issues": "https://github.com/justinrainbow/json-schema/issues", - "source": "https://github.com/justinrainbow/json-schema/tree/5.2.11" + "source": "https://github.com/justinrainbow/json-schema/tree/5.2.12" }, - "time": "2021-07-22T09:24:00+00:00" + "time": "2022-04-13T08:02:27+00:00" }, { "name": "myclabs/deep-copy", - "version": "1.10.2", + "version": "1.11.0", "source": { "type": "git", "url": "https://github.com/myclabs/DeepCopy.git", - "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220" + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/776f831124e9c62e1a2c601ecc52e776d8bb7220", - "reference": "776f831124e9c62e1a2c601ecc52e776d8bb7220", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/14daed4296fae74d9e3201d2c4925d1acb7aa614", + "reference": "14daed4296fae74d9e3201d2c4925d1acb7aa614", "shasum": "" }, "require": { "php": "^7.1 || ^8.0" }, - "replace": { - "myclabs/deep-copy": "self.version" + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3,<3.2.2" }, "require-dev": { - "doctrine/collections": "^1.0", - "doctrine/common": "^2.6", - "phpunit/phpunit": "^7.1" + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" }, "type": "library", "autoload": { - "psr-4": { - "DeepCopy\\": "src/DeepCopy/" - }, "files": [ "src/DeepCopy/deep_copy.php" - ] + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -1795,7 +1852,7 @@ ], "support": { "issues": "https://github.com/myclabs/DeepCopy/issues", - "source": "https://github.com/myclabs/DeepCopy/tree/1.10.2" + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.0" }, "funding": [ { @@ -1803,20 +1860,20 @@ "type": "tidelift" } ], - "time": "2020-11-13T09:40:50+00:00" + "time": "2022-03-03T13:19:32+00:00" }, { "name": "netresearch/jsonmapper", - "version": "v4.0.0", + "version": "v4.1.0", "source": { "type": "git", "url": "https://github.com/cweiske/jsonmapper.git", - "reference": "8bbc021a8edb2e4a7ea2f8ad4fa9ec9dce2fcb8d" + "reference": "cfa81ea1d35294d64adb9c68aa4cb9e92400e53f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/cweiske/jsonmapper/zipball/8bbc021a8edb2e4a7ea2f8ad4fa9ec9dce2fcb8d", - "reference": "8bbc021a8edb2e4a7ea2f8ad4fa9ec9dce2fcb8d", + "url": "https://api.github.com/repos/cweiske/jsonmapper/zipball/cfa81ea1d35294d64adb9c68aa4cb9e92400e53f", + "reference": "cfa81ea1d35294d64adb9c68aa4cb9e92400e53f", "shasum": "" }, "require": { @@ -1852,22 +1909,22 @@ "support": { "email": "cweiske@cweiske.de", "issues": "https://github.com/cweiske/jsonmapper/issues", - "source": "https://github.com/cweiske/jsonmapper/tree/v4.0.0" + "source": "https://github.com/cweiske/jsonmapper/tree/v4.1.0" }, - "time": "2020-12-01T19:48:11+00:00" + "time": "2022-12-08T20:46:14+00:00" }, { "name": "nikic/php-parser", - "version": "v4.13.2", + "version": "v4.15.2", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "210577fe3cf7badcc5814d99455df46564f3c077" + "reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/210577fe3cf7badcc5814d99455df46564f3c077", - "reference": "210577fe3cf7badcc5814d99455df46564f3c077", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc", + "reference": "f59bbe44bf7d96f24f3e2b4ddc21cd52c1d2adbc", "shasum": "" }, "require": { @@ -1908,22 +1965,22 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.13.2" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.15.2" }, - "time": "2021-11-30T19:35:32+00:00" + "time": "2022-11-12T15:38:23+00:00" }, { "name": "ondram/ci-detector", - "version": "3.5.1", + "version": "4.1.0", "source": { "type": "git", "url": "https://github.com/OndraM/ci-detector.git", - "reference": "594e61252843b68998bddd48078c5058fe9028bd" + "reference": "8a4b664e916df82ff26a44709942dfd593fa6f30" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/OndraM/ci-detector/zipball/594e61252843b68998bddd48078c5058fe9028bd", - "reference": "594e61252843b68998bddd48078c5058fe9028bd", + "url": "https://api.github.com/repos/OndraM/ci-detector/zipball/8a4b664e916df82ff26a44709942dfd593fa6f30", + "reference": "8a4b664e916df82ff26a44709942dfd593fa6f30", "shasum": "" }, "require": { @@ -1931,11 +1988,11 @@ }, "require-dev": { "ergebnis/composer-normalize": "^2.2", - "lmc/coding-standard": "^1.3 || ^2.0", - "php-parallel-lint/php-parallel-lint": "^1.1", - "phpstan/extension-installer": "^1.0.3", - "phpstan/phpstan": "^0.12.0", - "phpstan/phpstan-phpunit": "^0.12.1", + "lmc/coding-standard": "^1.3 || ^2.1", + "php-parallel-lint/php-parallel-lint": "^1.2", + "phpstan/extension-installer": "^1.0.5", + "phpstan/phpstan": "^0.12.58", + "phpstan/phpstan-phpunit": "^0.12.16", "phpunit/phpunit": "^7.1 || ^8.0 || ^9.0" }, "type": "library", @@ -1963,6 +2020,9 @@ "appveyor", "aws", "aws codebuild", + "azure", + "azure devops", + "azure pipelines", "bamboo", "bitbucket", "buddy", @@ -1970,19 +2030,22 @@ "codebuild", "continuous integration", "continuousphp", + "devops", "drone", "github", "gitlab", "interface", "jenkins", + "pipelines", + "sourcehut", "teamcity", "travis" ], "support": { "issues": "https://github.com/OndraM/ci-detector/issues", - "source": "https://github.com/OndraM/ci-detector/tree/main" + "source": "https://github.com/OndraM/ci-detector/tree/4.1.0" }, - "time": "2020-09-04T11:21:14+00:00" + "time": "2021-04-14T09:16:52+00:00" }, { "name": "openlss/lib-array2xml", @@ -2099,16 +2162,16 @@ }, { "name": "phar-io/version", - "version": "3.1.0", + "version": "3.2.1", "source": { "type": "git", "url": "https://github.com/phar-io/version.git", - "reference": "bae7c545bef187884426f042434e561ab1ddb182" + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/version/zipball/bae7c545bef187884426f042434e561ab1ddb182", - "reference": "bae7c545bef187884426f042434e561ab1ddb182", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", "shasum": "" }, "require": { @@ -2144,27 +2207,27 @@ "description": "Library for handling version information and constraints", "support": { "issues": "https://github.com/phar-io/version/issues", - "source": "https://github.com/phar-io/version/tree/3.1.0" + "source": "https://github.com/phar-io/version/tree/3.2.1" }, - "time": "2021-02-23T14:00:09+00:00" + "time": "2022-02-21T01:04:05+00:00" }, { "name": "phpbench/container", - "version": "2.2.0", + "version": "2.2.1", "source": { "type": "git", "url": "https://github.com/phpbench/container.git", - "reference": "4af6c2619296e95b72409fd6244f000276277047" + "reference": "6d555ff7174fca13f9b1ec0b4a089ed41d0ab392" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpbench/container/zipball/4af6c2619296e95b72409fd6244f000276277047", - "reference": "4af6c2619296e95b72409fd6244f000276277047", + "url": "https://api.github.com/repos/phpbench/container/zipball/6d555ff7174fca13f9b1ec0b4a089ed41d0ab392", + "reference": "6d555ff7174fca13f9b1ec0b4a089ed41d0ab392", "shasum": "" }, "require": { "psr/container": "^1.0|^2.0", - "symfony/options-resolver": "^4.2 || ^5.0" + "symfony/options-resolver": "^4.2 || ^5.0 || ^6.0" }, "require-dev": { "friendsofphp/php-cs-fixer": "^2.16", @@ -2174,7 +2237,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.0-dev" + "dev-master": "2.x-dev" } }, "autoload": { @@ -2195,9 +2258,9 @@ "description": "Simple, configurable, service container.", "support": { "issues": "https://github.com/phpbench/container/issues", - "source": "https://github.com/phpbench/container/tree/2.2.0" + "source": "https://github.com/phpbench/container/tree/2.2.1" }, - "time": "2021-07-14T20:56:29+00:00" + "time": "2022-01-25T10:17:35+00:00" }, { "name": "phpbench/dom", @@ -2252,16 +2315,16 @@ }, { "name": "phpbench/phpbench", - "version": "1.2.2", + "version": "1.2.7", "source": { "type": "git", "url": "https://github.com/phpbench/phpbench.git", - "reference": "0799479fcb4d4bf01d2320c2ea051c04e55adf39" + "reference": "dce145304abbb16c8d9af69c19d96f47e9d0e670" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpbench/phpbench/zipball/0799479fcb4d4bf01d2320c2ea051c04e55adf39", - "reference": "0799479fcb4d4bf01d2320c2ea051c04e55adf39", + "url": "https://api.github.com/repos/phpbench/phpbench/zipball/dce145304abbb16c8d9af69c19d96f47e9d0e670", + "reference": "dce145304abbb16c8d9af69c19d96f47e9d0e670", "shasum": "" }, "require": { @@ -2275,21 +2338,23 @@ "php": "^7.3 || ^8.0", "phpbench/container": "^2.1", "phpbench/dom": "~0.3.1", - "psr/log": "^1.1", + "psr/log": "^1.1 || ^2.0 || ^3.0", "seld/jsonlint": "^1.1", "symfony/console": "^4.2 || ^5.0 || ^6.0", "symfony/filesystem": "^4.2 || ^5.0 || ^6.0", "symfony/finder": "^4.2 || ^5.0 || ^6.0", "symfony/options-resolver": "^4.2 || ^5.0 || ^6.0", "symfony/process": "^4.2 || ^5.0 || ^6.0", - "webmozart/path-util": "^2.3" + "webmozart/glob": "^4.6" }, "require-dev": { "dantleech/invoke": "^2.0", "friendsofphp/php-cs-fixer": "^3.0", - "jangregor/phpstan-prophecy": "^0.8.1", + "jangregor/phpstan-prophecy": "^1.0", "phpspec/prophecy": "^1.12", - "phpstan/phpstan": "^0.12.7", + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.0", + "phpstan/phpstan-phpunit": "^1.0", "phpunit/phpunit": "^8.5.8 || ^9.0", "symfony/error-handler": "^5.2 || ^6.0", "symfony/var-dumper": "^4.0 || ^5.0 || ^6.0" @@ -2303,7 +2368,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1-dev" + "dev-master": "1.2-dev" } }, "autoload": { @@ -2328,7 +2393,7 @@ "description": "PHP Benchmarking Framework", "support": { "issues": "https://github.com/phpbench/phpbench/issues", - "source": "https://github.com/phpbench/phpbench/tree/1.2.2" + "source": "https://github.com/phpbench/phpbench/tree/1.2.7" }, "funding": [ { @@ -2336,7 +2401,7 @@ "type": "github" } ], - "time": "2021-12-11T20:52:22+00:00" + "time": "2022-10-15T09:57:51+00:00" }, { "name": "phpdocumentor/reflection-common", @@ -2450,25 +2515,30 @@ }, { "name": "phpdocumentor/type-resolver", - "version": "1.5.1", + "version": "1.6.2", "source": { "type": "git", "url": "https://github.com/phpDocumentor/TypeResolver.git", - "reference": "a12f7e301eb7258bb68acd89d4aefa05c2906cae" + "reference": "48f445a408c131e38cab1c235aa6d2bb7a0bb20d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/a12f7e301eb7258bb68acd89d4aefa05c2906cae", - "reference": "a12f7e301eb7258bb68acd89d4aefa05c2906cae", + "url": "https://api.github.com/repos/phpDocumentor/TypeResolver/zipball/48f445a408c131e38cab1c235aa6d2bb7a0bb20d", + "reference": "48f445a408c131e38cab1c235aa6d2bb7a0bb20d", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0", + "php": "^7.4 || ^8.0", "phpdocumentor/reflection-common": "^2.0" }, "require-dev": { "ext-tokenizer": "*", - "psalm/phar": "^4.8" + "phpstan/extension-installer": "^1.1", + "phpstan/phpstan": "^1.8", + "phpstan/phpstan-phpunit": "^1.1", + "phpunit/phpunit": "^9.5", + "rector/rector": "^0.13.9", + "vimeo/psalm": "^4.25" }, "type": "library", "extra": { @@ -2494,108 +2564,37 @@ "description": "A PSR-5 based resolver of Class names, Types and Structural Element Names", "support": { "issues": "https://github.com/phpDocumentor/TypeResolver/issues", - "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.5.1" + "source": "https://github.com/phpDocumentor/TypeResolver/tree/1.6.2" }, - "time": "2021-10-02T14:08:47+00:00" - }, - { - "name": "phpspec/prophecy", - "version": "v1.15.0", - "source": { - "type": "git", - "url": "https://github.com/phpspec/prophecy.git", - "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/phpspec/prophecy/zipball/bbcd7380b0ebf3961ee21409db7b38bc31d69a13", - "reference": "bbcd7380b0ebf3961ee21409db7b38bc31d69a13", - "shasum": "" - }, - "require": { - "doctrine/instantiator": "^1.2", - "php": "^7.2 || ~8.0, <8.2", - "phpdocumentor/reflection-docblock": "^5.2", - "sebastian/comparator": "^3.0 || ^4.0", - "sebastian/recursion-context": "^3.0 || ^4.0" - }, - "require-dev": { - "phpspec/phpspec": "^6.0 || ^7.0", - "phpunit/phpunit": "^8.0 || ^9.0" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.x-dev" - } - }, - "autoload": { - "psr-4": { - "Prophecy\\": "src/Prophecy" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Konstantin Kudryashov", - "email": "ever.zet@gmail.com", - "homepage": "http://everzet.com" - }, - { - "name": "Marcello Duarte", - "email": "marcello.duarte@gmail.com" - } - ], - "description": "Highly opinionated mocking framework for PHP 5.3+", - "homepage": "https://github.com/phpspec/prophecy", - "keywords": [ - "Double", - "Dummy", - "fake", - "mock", - "spy", - "stub" - ], - "support": { - "issues": "https://github.com/phpspec/prophecy/issues", - "source": "https://github.com/phpspec/prophecy/tree/v1.15.0" - }, - "time": "2021-12-08T12:19:24+00:00" + "time": "2022-10-14T12:47:21+00:00" }, { "name": "phpstan/phpdoc-parser", - "version": "1.2.0", + "version": "1.15.3", "source": { "type": "git", "url": "https://github.com/phpstan/phpdoc-parser.git", - "reference": "dbc093d7af60eff5cd575d2ed761b15ed40bd08e" + "reference": "61800f71a5526081d1b5633766aa88341f1ade76" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/dbc093d7af60eff5cd575d2ed761b15ed40bd08e", - "reference": "dbc093d7af60eff5cd575d2ed761b15ed40bd08e", + "url": "https://api.github.com/repos/phpstan/phpdoc-parser/zipball/61800f71a5526081d1b5633766aa88341f1ade76", + "reference": "61800f71a5526081d1b5633766aa88341f1ade76", "shasum": "" }, "require": { - "php": "^7.1 || ^8.0" + "php": "^7.2 || ^8.0" }, "require-dev": { "php-parallel-lint/php-parallel-lint": "^1.2", "phpstan/extension-installer": "^1.0", - "phpstan/phpstan": "^1.0", + "phpstan/phpstan": "^1.5", + "phpstan/phpstan-phpunit": "^1.1", "phpstan/phpstan-strict-rules": "^1.0", "phpunit/phpunit": "^9.5", "symfony/process": "^5.2" }, "type": "library", - "extra": { - "branch-alias": { - "dev-master": "1.0-dev" - } - }, "autoload": { "psr-4": { "PHPStan\\PhpDocParser\\": [ @@ -2610,29 +2609,29 @@ "description": "PHPDoc parser with support for nullable, intersection and generic types", "support": { "issues": "https://github.com/phpstan/phpdoc-parser/issues", - "source": "https://github.com/phpstan/phpdoc-parser/tree/1.2.0" + "source": "https://github.com/phpstan/phpdoc-parser/tree/1.15.3" }, - "time": "2021-09-16T20:46:02+00:00" + "time": "2022-12-20T20:56:55+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "9.2.10", + "version": "9.2.23", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "d5850aaf931743067f4bfc1ae4cbd06468400687" + "reference": "9f1f0f9a2fbb680b26d1cf9b61b6eac43a6e4e9c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/d5850aaf931743067f4bfc1ae4cbd06468400687", - "reference": "d5850aaf931743067f4bfc1ae4cbd06468400687", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/9f1f0f9a2fbb680b26d1cf9b61b6eac43a6e4e9c", + "reference": "9f1f0f9a2fbb680b26d1cf9b61b6eac43a6e4e9c", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.13.0", + "nikic/php-parser": "^4.14", "php": ">=7.3", "phpunit/php-file-iterator": "^3.0.3", "phpunit/php-text-template": "^2.0.2", @@ -2681,7 +2680,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", - "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.10" + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.23" }, "funding": [ { @@ -2689,7 +2688,7 @@ "type": "github" } ], - "time": "2021-12-05T09:12:13+00:00" + "time": "2022-12-28T12:41:10+00:00" }, { "name": "phpunit/php-file-iterator", @@ -2934,16 +2933,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.5.10", + "version": "9.5.27", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "c814a05837f2edb0d1471d6e3f4ab3501ca3899a" + "reference": "a2bc7ffdca99f92d959b3f2270529334030bba38" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/c814a05837f2edb0d1471d6e3f4ab3501ca3899a", - "reference": "c814a05837f2edb0d1471d6e3f4ab3501ca3899a", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a2bc7ffdca99f92d959b3f2270529334030bba38", + "reference": "a2bc7ffdca99f92d959b3f2270529334030bba38", "shasum": "" }, "require": { @@ -2958,28 +2957,23 @@ "phar-io/manifest": "^2.0.3", "phar-io/version": "^3.0.2", "php": ">=7.3", - "phpspec/prophecy": "^1.12.1", - "phpunit/php-code-coverage": "^9.2.7", + "phpunit/php-code-coverage": "^9.2.13", "phpunit/php-file-iterator": "^3.0.5", "phpunit/php-invoker": "^3.1.1", "phpunit/php-text-template": "^2.0.3", "phpunit/php-timer": "^5.0.2", "sebastian/cli-parser": "^1.0.1", "sebastian/code-unit": "^1.0.6", - "sebastian/comparator": "^4.0.5", + "sebastian/comparator": "^4.0.8", "sebastian/diff": "^4.0.3", "sebastian/environment": "^5.1.3", - "sebastian/exporter": "^4.0.3", + "sebastian/exporter": "^4.0.5", "sebastian/global-state": "^5.0.1", "sebastian/object-enumerator": "^4.0.3", "sebastian/resource-operations": "^3.0.3", - "sebastian/type": "^2.3.4", + "sebastian/type": "^3.2", "sebastian/version": "^3.0.2" }, - "require-dev": { - "ext-pdo": "*", - "phpspec/prophecy-phpunit": "^2.0.1" - }, "suggest": { "ext-soap": "*", "ext-xdebug": "*" @@ -2994,11 +2988,11 @@ } }, "autoload": { - "classmap": [ - "src/" - ], "files": [ "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -3021,19 +3015,23 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", - "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.10" + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.5.27" }, "funding": [ { - "url": "https://phpunit.de/donate.html", + "url": "https://phpunit.de/sponsors.html", "type": "custom" }, { "url": "https://github.com/sebastianbergmann", "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" } ], - "time": "2021-09-25T07:38:51+00:00" + "time": "2022-12-09T07:31:23+00:00" }, { "name": "psr/cache", @@ -3139,30 +3137,30 @@ }, { "name": "psr/log", - "version": "1.1.4", + "version": "2.0.0", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11" + "reference": "ef29f6d262798707a9edd554e2b82517ef3a9376" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/d49695b909c3b7628b6289db5479a1c204601f11", - "reference": "d49695b909c3b7628b6289db5479a1c204601f11", + "url": "https://api.github.com/repos/php-fig/log/zipball/ef29f6d262798707a9edd554e2b82517ef3a9376", + "reference": "ef29f6d262798707a9edd554e2b82517ef3a9376", "shasum": "" }, "require": { - "php": ">=5.3.0" + "php": ">=8.0.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "1.1.x-dev" + "dev-master": "2.0.x-dev" } }, "autoload": { "psr-4": { - "Psr\\Log\\": "Psr/Log/" + "Psr\\Log\\": "src" } }, "notification-url": "https://packagist.org/downloads/", @@ -3183,34 +3181,34 @@ "psr-3" ], "support": { - "source": "https://github.com/php-fig/log/tree/1.1.4" + "source": "https://github.com/php-fig/log/tree/2.0.0" }, - "time": "2021-05-03T11:20:27+00:00" + "time": "2021-07-14T16:41:46+00:00" }, { "name": "roave/infection-static-analysis-plugin", - "version": "1.12.0", + "version": "1.19.0", "source": { "type": "git", "url": "https://github.com/Roave/infection-static-analysis-plugin.git", - "reference": "8390a8ab36a4b73eef8ce3c270964c21e3c831b1" + "reference": "ad79ff4f7996438c23fbae99aea60aa7d06a7f56" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Roave/infection-static-analysis-plugin/zipball/8390a8ab36a4b73eef8ce3c270964c21e3c831b1", - "reference": "8390a8ab36a4b73eef8ce3c270964c21e3c831b1", + "url": "https://api.github.com/repos/Roave/infection-static-analysis-plugin/zipball/ad79ff4f7996438c23fbae99aea60aa7d06a7f56", + "reference": "ad79ff4f7996438c23fbae99aea60aa7d06a7f56", "shasum": "" }, "require": { - "infection/infection": "0.25.3", + "infection/infection": "0.26.10", "ocramius/package-versions": "^1.9.0 || ^2.0.0", - "php": "~7.4.7|~8.0.0|~8.1.0", + "php": "~8.0.0|~8.1.0", "sanmai/later": "^0.1.2", - "vimeo/psalm": "^4.13.1" + "vimeo/psalm": "^4.23.0" }, "require-dev": { "doctrine/coding-standard": "^9.0.0", - "phpunit/phpunit": "^9.5.9" + "phpunit/phpunit": "^9.5.20" }, "bin": [ "bin/roave-infection-static-analysis-plugin" @@ -3234,9 +3232,9 @@ "description": "Static analysis on top of mutation testing - prevents escaped mutants from being invalid according to static analysis", "support": { "issues": "https://github.com/Roave/infection-static-analysis-plugin/issues", - "source": "https://github.com/Roave/infection-static-analysis-plugin/tree/1.12.0" + "source": "https://github.com/Roave/infection-static-analysis-plugin/tree/1.19.0" }, - "time": "2021-11-30T01:18:25+00:00" + "time": "2022-05-20T10:55:18+00:00" }, { "name": "sanmai/later", @@ -3266,12 +3264,12 @@ }, "type": "library", "autoload": { - "psr-4": { - "Later\\": "src/" - }, "files": [ "src/functions.php" - ] + ], + "psr-4": { + "Later\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -3298,16 +3296,16 @@ }, { "name": "sanmai/pipeline", - "version": "v5.2.1", + "version": "v6.3", "source": { "type": "git", "url": "https://github.com/sanmai/pipeline.git", - "reference": "2b5509a7635143165041109eb1c393c8515724f1" + "reference": "929b115ca58d62b6b2574702df1ebde4562c7c43" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sanmai/pipeline/zipball/2b5509a7635143165041109eb1c393c8515724f1", - "reference": "2b5509a7635143165041109eb1c393c8515724f1", + "url": "https://api.github.com/repos/sanmai/pipeline/zipball/929b115ca58d62b6b2574702df1ebde4562c7c43", + "reference": "929b115ca58d62b6b2574702df1ebde4562c7c43", "shasum": "" }, "require": { @@ -3327,16 +3325,16 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "v5.x-dev" + "dev-main": "v6.x-dev" } }, "autoload": { - "psr-4": { - "Pipeline\\": "src/" - }, "files": [ "src/functions.php" - ] + ], + "psr-4": { + "Pipeline\\": "src/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -3351,7 +3349,7 @@ "description": "General-purpose collections pipeline", "support": { "issues": "https://github.com/sanmai/pipeline/issues", - "source": "https://github.com/sanmai/pipeline/tree/v5.2.1" + "source": "https://github.com/sanmai/pipeline/tree/v6.3" }, "funding": [ { @@ -3359,7 +3357,7 @@ "type": "github" } ], - "time": "2021-11-01T10:09:55+00:00" + "time": "2022-11-30T06:07:06+00:00" }, { "name": "sebastian/cli-parser", @@ -3530,16 +3528,16 @@ }, { "name": "sebastian/comparator", - "version": "4.0.6", + "version": "4.0.8", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/comparator.git", - "reference": "55f4261989e546dc112258c7a75935a81a7ce382" + "reference": "fa0f136dd2334583309d32b62544682ee972b51a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/55f4261989e546dc112258c7a75935a81a7ce382", - "reference": "55f4261989e546dc112258c7a75935a81a7ce382", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/fa0f136dd2334583309d32b62544682ee972b51a", + "reference": "fa0f136dd2334583309d32b62544682ee972b51a", "shasum": "" }, "require": { @@ -3592,7 +3590,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/comparator/issues", - "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.6" + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" }, "funding": [ { @@ -3600,7 +3598,7 @@ "type": "github" } ], - "time": "2020-10-26T15:49:45+00:00" + "time": "2022-09-14T12:41:17+00:00" }, { "name": "sebastian/complexity", @@ -3727,16 +3725,16 @@ }, { "name": "sebastian/environment", - "version": "5.1.3", + "version": "5.1.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/environment.git", - "reference": "388b6ced16caa751030f6a69e588299fa09200ac" + "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/388b6ced16caa751030f6a69e588299fa09200ac", - "reference": "388b6ced16caa751030f6a69e588299fa09200ac", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/1b5dff7bb151a4db11d49d90e5408e4e938270f7", + "reference": "1b5dff7bb151a4db11d49d90e5408e4e938270f7", "shasum": "" }, "require": { @@ -3778,7 +3776,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/environment/issues", - "source": "https://github.com/sebastianbergmann/environment/tree/5.1.3" + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.4" }, "funding": [ { @@ -3786,20 +3784,20 @@ "type": "github" } ], - "time": "2020-09-28T05:52:38+00:00" + "time": "2022-04-03T09:37:03+00:00" }, { "name": "sebastian/exporter", - "version": "4.0.4", + "version": "4.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9" + "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/65e8b7db476c5dd267e65eea9cab77584d3cfff9", - "reference": "65e8b7db476c5dd267e65eea9cab77584d3cfff9", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", + "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", "shasum": "" }, "require": { @@ -3855,7 +3853,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/exporter/issues", - "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.4" + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.5" }, "funding": [ { @@ -3863,20 +3861,20 @@ "type": "github" } ], - "time": "2021-11-11T14:18:36+00:00" + "time": "2022-09-14T06:03:37+00:00" }, { "name": "sebastian/global-state", - "version": "5.0.3", + "version": "5.0.5", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49" + "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/23bd5951f7ff26f12d4e3242864df3e08dec4e49", - "reference": "23bd5951f7ff26f12d4e3242864df3e08dec4e49", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/0ca8db5a5fc9c8646244e629625ac486fa286bf2", + "reference": "0ca8db5a5fc9c8646244e629625ac486fa286bf2", "shasum": "" }, "require": { @@ -3919,7 +3917,7 @@ ], "support": { "issues": "https://github.com/sebastianbergmann/global-state/issues", - "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.3" + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.5" }, "funding": [ { @@ -3927,7 +3925,7 @@ "type": "github" } ], - "time": "2021-06-11T13:31:12+00:00" + "time": "2022-02-14T08:28:10+00:00" }, { "name": "sebastian/lines-of-code", @@ -4218,28 +4216,28 @@ }, { "name": "sebastian/type", - "version": "2.3.4", + "version": "3.2.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/type.git", - "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914" + "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/b8cd8a1c753c90bc1a0f5372170e3e489136f914", - "reference": "b8cd8a1c753c90bc1a0f5372170e3e489136f914", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", + "reference": "fb3fe09c5f0bae6bc27ef3ce933a1e0ed9464b6e", "shasum": "" }, "require": { "php": ">=7.3" }, "require-dev": { - "phpunit/phpunit": "^9.3" + "phpunit/phpunit": "^9.5" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "2.3-dev" + "dev-master": "3.2-dev" } }, "autoload": { @@ -4262,7 +4260,7 @@ "homepage": "https://github.com/sebastianbergmann/type", "support": { "issues": "https://github.com/sebastianbergmann/type/issues", - "source": "https://github.com/sebastianbergmann/type/tree/2.3.4" + "source": "https://github.com/sebastianbergmann/type/tree/3.2.0" }, "funding": [ { @@ -4270,7 +4268,7 @@ "type": "github" } ], - "time": "2021-06-15T12:49:02+00:00" + "time": "2022-09-12T14:47:03+00:00" }, { "name": "sebastian/version", @@ -4327,23 +4325,24 @@ }, { "name": "seld/jsonlint", - "version": "1.8.3", + "version": "1.9.0", "source": { "type": "git", "url": "https://github.com/Seldaek/jsonlint.git", - "reference": "9ad6ce79c342fbd44df10ea95511a1b24dee5b57" + "reference": "4211420d25eba80712bff236a98960ef68b866b7" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/9ad6ce79c342fbd44df10ea95511a1b24dee5b57", - "reference": "9ad6ce79c342fbd44df10ea95511a1b24dee5b57", + "url": "https://api.github.com/repos/Seldaek/jsonlint/zipball/4211420d25eba80712bff236a98960ef68b866b7", + "reference": "4211420d25eba80712bff236a98960ef68b866b7", "shasum": "" }, "require": { "php": "^5.3 || ^7.0 || ^8.0" }, "require-dev": { - "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0" + "phpstan/phpstan": "^1.5", + "phpunit/phpunit": "^4.8.35 || ^5.7 || ^6.0 || ^8.5.13" }, "bin": [ "bin/jsonlint" @@ -4374,7 +4373,7 @@ ], "support": { "issues": "https://github.com/Seldaek/jsonlint/issues", - "source": "https://github.com/Seldaek/jsonlint/tree/1.8.3" + "source": "https://github.com/Seldaek/jsonlint/tree/1.9.0" }, "funding": [ { @@ -4386,36 +4385,36 @@ "type": "tidelift" } ], - "time": "2020-11-11T09:19:24+00:00" + "time": "2022-04-01T13:37:23+00:00" }, { "name": "slevomat/coding-standard", - "version": "7.0.18", + "version": "7.2.1", "source": { "type": "git", "url": "https://github.com/slevomat/coding-standard.git", - "reference": "b81ac84f41a4797dc25c8ede1b0718e2a74be0fc" + "reference": "aff06ae7a84e4534bf6f821dc982a93a5d477c90" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/b81ac84f41a4797dc25c8ede1b0718e2a74be0fc", - "reference": "b81ac84f41a4797dc25c8ede1b0718e2a74be0fc", + "url": "https://api.github.com/repos/slevomat/coding-standard/zipball/aff06ae7a84e4534bf6f821dc982a93a5d477c90", + "reference": "aff06ae7a84e4534bf6f821dc982a93a5d477c90", "shasum": "" }, "require": { "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7", - "php": "^7.1 || ^8.0", - "phpstan/phpdoc-parser": "^1.0.0", - "squizlabs/php_codesniffer": "^3.6.1" + "php": "^7.2 || ^8.0", + "phpstan/phpdoc-parser": "^1.5.1", + "squizlabs/php_codesniffer": "^3.6.2" }, "require-dev": { - "phing/phing": "2.17.0", - "php-parallel-lint/php-parallel-lint": "1.3.1", - "phpstan/phpstan": "1.2.0", + "phing/phing": "2.17.3", + "php-parallel-lint/php-parallel-lint": "1.3.2", + "phpstan/phpstan": "1.4.10|1.7.1", "phpstan/phpstan-deprecation-rules": "1.0.0", - "phpstan/phpstan-phpunit": "1.0.0", - "phpstan/phpstan-strict-rules": "1.1.0", - "phpunit/phpunit": "7.5.20|8.5.21|9.5.10" + "phpstan/phpstan-phpunit": "1.0.0|1.1.1", + "phpstan/phpstan-strict-rules": "1.2.3", + "phpunit/phpunit": "7.5.20|8.5.21|9.5.20" }, "type": "phpcodesniffer-standard", "extra": { @@ -4435,7 +4434,7 @@ "description": "Slevomat Coding Standard for PHP_CodeSniffer complements Consistence Coding Standard by providing sniffs with additional checks.", "support": { "issues": "https://github.com/slevomat/coding-standard/issues", - "source": "https://github.com/slevomat/coding-standard/tree/7.0.18" + "source": "https://github.com/slevomat/coding-standard/tree/7.2.1" }, "funding": [ { @@ -4447,20 +4446,20 @@ "type": "tidelift" } ], - "time": "2021-12-07T17:19:06+00:00" + "time": "2022-05-25T10:58:12+00:00" }, { "name": "squizlabs/php_codesniffer", - "version": "3.6.2", + "version": "3.7.1", "source": { "type": "git", "url": "https://github.com/squizlabs/PHP_CodeSniffer.git", - "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a" + "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/5e4e71592f69da17871dba6e80dd51bce74a351a", - "reference": "5e4e71592f69da17871dba6e80dd51bce74a351a", + "url": "https://api.github.com/repos/squizlabs/PHP_CodeSniffer/zipball/1359e176e9307e906dc3d890bcc9603ff6d90619", + "reference": "1359e176e9307e906dc3d890bcc9603ff6d90619", "shasum": "" }, "require": { @@ -4503,20 +4502,20 @@ "source": "https://github.com/squizlabs/PHP_CodeSniffer", "wiki": "https://github.com/squizlabs/PHP_CodeSniffer/wiki" }, - "time": "2021-12-12T21:44:58+00:00" + "time": "2022-06-18T07:21:10+00:00" }, { "name": "symfony/config", - "version": "v5.4.0", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/config.git", - "reference": "e39cf688c80fd79ab0a6a2d05a9facac9b2d534b" + "reference": "ec79e03125c1d2477e43dde8528535d90cc78379" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/config/zipball/e39cf688c80fd79ab0a6a2d05a9facac9b2d534b", - "reference": "e39cf688c80fd79ab0a6a2d05a9facac9b2d534b", + "url": "https://api.github.com/repos/symfony/config/zipball/ec79e03125c1d2477e43dde8528535d90cc78379", + "reference": "ec79e03125c1d2477e43dde8528535d90cc78379", "shasum": "" }, "require": { @@ -4566,7 +4565,7 @@ "description": "Helps you find, load, combine, autofill and validate configuration values of any kind", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/config/tree/v5.4.0" + "source": "https://github.com/symfony/config/tree/v5.4.11" }, "funding": [ { @@ -4582,20 +4581,20 @@ "type": "tidelift" } ], - "time": "2021-11-28T15:25:38+00:00" + "time": "2022-07-20T13:00:38+00:00" }, { "name": "symfony/console", - "version": "v5.4.1", + "version": "v5.4.17", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "9130e1a0fc93cb0faadca4ee917171bd2ca9e5f4" + "reference": "58422fdcb0e715ed05b385f70d3e8b5ed4bbd45f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/9130e1a0fc93cb0faadca4ee917171bd2ca9e5f4", - "reference": "9130e1a0fc93cb0faadca4ee917171bd2ca9e5f4", + "url": "https://api.github.com/repos/symfony/console/zipball/58422fdcb0e715ed05b385f70d3e8b5ed4bbd45f", + "reference": "58422fdcb0e715ed05b385f70d3e8b5ed4bbd45f", "shasum": "" }, "require": { @@ -4665,7 +4664,7 @@ "terminal" ], "support": { - "source": "https://github.com/symfony/console/tree/v5.4.1" + "source": "https://github.com/symfony/console/tree/v5.4.17" }, "funding": [ { @@ -4681,29 +4680,29 @@ "type": "tidelift" } ], - "time": "2021-12-09T11:22:43+00:00" + "time": "2022-12-28T14:15:31+00:00" }, { "name": "symfony/deprecation-contracts", - "version": "v3.0.0", + "version": "v3.2.0", "source": { "type": "git", "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "c726b64c1ccfe2896cb7df2e1331c357ad1c8ced" + "reference": "1ee04c65529dea5d8744774d474e7cbd2f1206d3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/c726b64c1ccfe2896cb7df2e1331c357ad1c8ced", - "reference": "c726b64c1ccfe2896cb7df2e1331c357ad1c8ced", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/1ee04c65529dea5d8744774d474e7cbd2f1206d3", + "reference": "1ee04c65529dea5d8744774d474e7cbd2f1206d3", "shasum": "" }, "require": { - "php": ">=8.0.2" + "php": ">=8.1" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "3.3-dev" }, "thanks": { "name": "symfony/contracts", @@ -4732,7 +4731,7 @@ "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v3.0.0" + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.2.0" }, "funding": [ { @@ -4748,20 +4747,20 @@ "type": "tidelift" } ], - "time": "2021-11-01T23:48:49+00:00" + "time": "2022-11-25T10:21:52+00:00" }, { "name": "symfony/filesystem", - "version": "v4.4.27", + "version": "v4.4.42", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "517fb795794faf29086a77d99eb8f35e457837a7" + "reference": "815412ee8971209bd4c1eecd5f4f481eacd44bf5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/517fb795794faf29086a77d99eb8f35e457837a7", - "reference": "517fb795794faf29086a77d99eb8f35e457837a7", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/815412ee8971209bd4c1eecd5f4f481eacd44bf5", + "reference": "815412ee8971209bd4c1eecd5f4f481eacd44bf5", "shasum": "" }, "require": { @@ -4795,7 +4794,7 @@ "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/filesystem/tree/v4.4.27" + "source": "https://github.com/symfony/filesystem/tree/v4.4.42" }, "funding": [ { @@ -4811,20 +4810,20 @@ "type": "tidelift" } ], - "time": "2021-07-21T12:19:41+00:00" + "time": "2022-05-20T08:49:14+00:00" }, { "name": "symfony/finder", - "version": "v5.4.0", + "version": "v5.4.17", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "d2f29dac98e96a98be467627bd49c2efb1bc2590" + "reference": "40c08632019838dfb3350f18cf5563b8080055fc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/d2f29dac98e96a98be467627bd49c2efb1bc2590", - "reference": "d2f29dac98e96a98be467627bd49c2efb1bc2590", + "url": "https://api.github.com/repos/symfony/finder/zipball/40c08632019838dfb3350f18cf5563b8080055fc", + "reference": "40c08632019838dfb3350f18cf5563b8080055fc", "shasum": "" }, "require": { @@ -4858,7 +4857,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.4.0" + "source": "https://github.com/symfony/finder/tree/v5.4.17" }, "funding": [ { @@ -4874,27 +4873,25 @@ "type": "tidelift" } ], - "time": "2021-11-28T15:25:38+00:00" + "time": "2022-12-22T10:31:03+00:00" }, { "name": "symfony/options-resolver", - "version": "v5.4.0", + "version": "v6.2.0", "source": { "type": "git", "url": "https://github.com/symfony/options-resolver.git", - "reference": "b0fb78576487af19c500aaddb269fd36701d4847" + "reference": "d28f02acde71ff75e957082cd36e973df395f626" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/options-resolver/zipball/b0fb78576487af19c500aaddb269fd36701d4847", - "reference": "b0fb78576487af19c500aaddb269fd36701d4847", + "url": "https://api.github.com/repos/symfony/options-resolver/zipball/d28f02acde71ff75e957082cd36e973df395f626", + "reference": "d28f02acde71ff75e957082cd36e973df395f626", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-php73": "~1.0", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.1", + "symfony/deprecation-contracts": "^2.1|^3" }, "type": "library", "autoload": { @@ -4927,7 +4924,7 @@ "options" ], "support": { - "source": "https://github.com/symfony/options-resolver/tree/v5.4.0" + "source": "https://github.com/symfony/options-resolver/tree/v6.2.0" }, "funding": [ { @@ -4943,32 +4940,35 @@ "type": "tidelift" } ], - "time": "2021-11-23T10:19:22+00:00" + "time": "2022-11-02T09:08:04+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.23.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce" + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/46cd95797e9df938fdd2b03693b5fca5e64b01ce", - "reference": "46cd95797e9df938fdd2b03693b5fca5e64b01ce", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a", + "reference": "5bbc823adecdae860bb64756d639ecfec17b050a", "shasum": "" }, "require": { "php": ">=7.1" }, + "provide": { + "ext-ctype": "*" + }, "suggest": { "ext-ctype": "For best performance" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -4976,12 +4976,12 @@ } }, "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Ctype\\": "" - }, "files": [ "bootstrap.php" - ] + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -5006,7 +5006,7 @@ "portable" ], "support": { - "source": "https://github.com/symfony/polyfill-ctype/tree/v1.23.0" + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.27.0" }, "funding": [ { @@ -5022,20 +5022,20 @@ "type": "tidelift" } ], - "time": "2021-02-19T12:13:01+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.23.1", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "16880ba9c5ebe3642d1995ab866db29270b36535" + "reference": "511a08c03c1960e08a883f4cffcacd219b758354" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/16880ba9c5ebe3642d1995ab866db29270b36535", - "reference": "16880ba9c5ebe3642d1995ab866db29270b36535", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/511a08c03c1960e08a883f4cffcacd219b758354", + "reference": "511a08c03c1960e08a883f4cffcacd219b758354", "shasum": "" }, "require": { @@ -5047,7 +5047,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -5055,12 +5055,12 @@ } }, "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Intl\\Grapheme\\": "" - }, "files": [ "bootstrap.php" - ] + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -5087,7 +5087,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.23.1" + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.27.0" }, "funding": [ { @@ -5103,20 +5103,20 @@ "type": "tidelift" } ], - "time": "2021-05-27T12:26:48+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.23.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8" + "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8590a5f561694770bdcd3f9b5c69dde6945028e8", - "reference": "8590a5f561694770bdcd3f9b5c69dde6945028e8", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/19bd1e4fcd5b91116f14d8533c57831ed00571b6", + "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6", "shasum": "" }, "require": { @@ -5128,7 +5128,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -5136,12 +5136,12 @@ } }, "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Intl\\Normalizer\\": "" - }, "files": [ "bootstrap.php" ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, "classmap": [ "Resources/stubs" ] @@ -5171,7 +5171,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.23.0" + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.27.0" }, "funding": [ { @@ -5187,32 +5187,35 @@ "type": "tidelift" } ], - "time": "2021-02-19T12:13:01+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.23.1", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6" + "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9174a3d80210dca8daa7f31fec659150bbeabfc6", - "reference": "9174a3d80210dca8daa7f31fec659150bbeabfc6", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534", + "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534", "shasum": "" }, "require": { "php": ">=7.1" }, + "provide": { + "ext-mbstring": "*" + }, "suggest": { "ext-mbstring": "For best performance" }, "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -5220,12 +5223,89 @@ } }, "autoload": { + "files": [ + "bootstrap.php" + ], "psr-4": { "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.27.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2022-11-03T14:55:06+00:00" + }, + { + "name": "symfony/polyfill-php72", + "version": "v1.27.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php72.git", + "reference": "869329b1e9894268a8a61dabb69153029b7a8c97" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/869329b1e9894268a8a61dabb69153029b7a8c97", + "reference": "869329b1e9894268a8a61dabb69153029b7a8c97", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.27-dev" }, + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { "files": [ "bootstrap.php" - ] + ], + "psr-4": { + "Symfony\\Polyfill\\Php72\\": "" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -5241,17 +5321,16 @@ "homepage": "https://symfony.com/contributors" } ], - "description": "Symfony polyfill for the Mbstring extension", + "description": "Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions", "homepage": "https://symfony.com", "keywords": [ "compatibility", - "mbstring", "polyfill", "portable", "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.23.1" + "source": "https://github.com/symfony/polyfill-php72/tree/v1.27.0" }, "funding": [ { @@ -5267,20 +5346,20 @@ "type": "tidelift" } ], - "time": "2021-05-27T12:26:48+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-php73", - "version": "v1.23.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010" + "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fba8933c384d6476ab14fb7b8526e5287ca7e010", - "reference": "fba8933c384d6476ab14fb7b8526e5287ca7e010", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/9e8ecb5f92152187c4799efd3c96b78ccab18ff9", + "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9", "shasum": "" }, "require": { @@ -5289,7 +5368,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -5297,12 +5376,12 @@ } }, "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Php73\\": "" - }, "files": [ "bootstrap.php" ], + "psr-4": { + "Symfony\\Polyfill\\Php73\\": "" + }, "classmap": [ "Resources/stubs" ] @@ -5330,7 +5409,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php73/tree/v1.23.0" + "source": "https://github.com/symfony/polyfill-php73/tree/v1.27.0" }, "funding": [ { @@ -5346,20 +5425,20 @@ "type": "tidelift" } ], - "time": "2021-02-19T12:13:01+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.23.1", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be" + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/1100343ed1a92e3a38f9ae122fc0eb21602547be", - "reference": "1100343ed1a92e3a38f9ae122fc0eb21602547be", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", + "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", "shasum": "" }, "require": { @@ -5368,7 +5447,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -5376,12 +5455,12 @@ } }, "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Php80\\": "" - }, "files": [ "bootstrap.php" ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, "classmap": [ "Resources/stubs" ] @@ -5413,7 +5492,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.23.1" + "source": "https://github.com/symfony/polyfill-php80/tree/v1.27.0" }, "funding": [ { @@ -5429,20 +5508,20 @@ "type": "tidelift" } ], - "time": "2021-07-28T13:41:28+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/polyfill-php81", - "version": "v1.23.0", + "version": "v1.27.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php81.git", - "reference": "e66119f3de95efc359483f810c4c3e6436279436" + "reference": "707403074c8ea6e2edaf8794b0157a0bfa52157a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/e66119f3de95efc359483f810c4c3e6436279436", - "reference": "e66119f3de95efc359483f810c4c3e6436279436", + "url": "https://api.github.com/repos/symfony/polyfill-php81/zipball/707403074c8ea6e2edaf8794b0157a0bfa52157a", + "reference": "707403074c8ea6e2edaf8794b0157a0bfa52157a", "shasum": "" }, "require": { @@ -5451,7 +5530,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "1.23-dev" + "dev-main": "1.27-dev" }, "thanks": { "name": "symfony/polyfill", @@ -5459,12 +5538,12 @@ } }, "autoload": { - "psr-4": { - "Symfony\\Polyfill\\Php81\\": "" - }, "files": [ "bootstrap.php" ], + "psr-4": { + "Symfony\\Polyfill\\Php81\\": "" + }, "classmap": [ "Resources/stubs" ] @@ -5492,7 +5571,7 @@ "shim" ], "support": { - "source": "https://github.com/symfony/polyfill-php81/tree/v1.23.0" + "source": "https://github.com/symfony/polyfill-php81/tree/v1.27.0" }, "funding": [ { @@ -5508,20 +5587,20 @@ "type": "tidelift" } ], - "time": "2021-05-21T13:25:03+00:00" + "time": "2022-11-03T14:55:06+00:00" }, { "name": "symfony/process", - "version": "v5.4.0", + "version": "v5.4.11", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "5be20b3830f726e019162b26223110c8f47cf274" + "reference": "6e75fe6874cbc7e4773d049616ab450eff537bf1" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/5be20b3830f726e019162b26223110c8f47cf274", - "reference": "5be20b3830f726e019162b26223110c8f47cf274", + "url": "https://api.github.com/repos/symfony/process/zipball/6e75fe6874cbc7e4773d049616ab450eff537bf1", + "reference": "6e75fe6874cbc7e4773d049616ab450eff537bf1", "shasum": "" }, "require": { @@ -5554,7 +5633,7 @@ "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/process/tree/v5.4.0" + "source": "https://github.com/symfony/process/tree/v5.4.11" }, "funding": [ { @@ -5570,24 +5649,24 @@ "type": "tidelift" } ], - "time": "2021-11-28T15:25:38+00:00" + "time": "2022-06-27T16:58:25+00:00" }, { "name": "symfony/service-contracts", - "version": "v3.0.0", + "version": "v3.2.0", "source": { "type": "git", "url": "https://github.com/symfony/service-contracts.git", - "reference": "36715ebf9fb9db73db0cb24263c79077c6fe8603" + "reference": "aac98028c69df04ee77eb69b96b86ee51fbf4b75" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/service-contracts/zipball/36715ebf9fb9db73db0cb24263c79077c6fe8603", - "reference": "36715ebf9fb9db73db0cb24263c79077c6fe8603", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/aac98028c69df04ee77eb69b96b86ee51fbf4b75", + "reference": "aac98028c69df04ee77eb69b96b86ee51fbf4b75", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=8.1", "psr/container": "^2.0" }, "conflict": { @@ -5599,7 +5678,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "3.0-dev" + "dev-main": "3.3-dev" }, "thanks": { "name": "symfony/contracts", @@ -5609,7 +5688,10 @@ "autoload": { "psr-4": { "Symfony\\Contracts\\Service\\": "" - } + }, + "exclude-from-classmap": [ + "/Test/" + ] }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -5636,7 +5718,7 @@ "standards" ], "support": { - "source": "https://github.com/symfony/service-contracts/tree/v3.0.0" + "source": "https://github.com/symfony/service-contracts/tree/v3.2.0" }, "funding": [ { @@ -5652,24 +5734,24 @@ "type": "tidelift" } ], - "time": "2021-11-04T17:53:12+00:00" + "time": "2022-11-25T10:21:52+00:00" }, { "name": "symfony/string", - "version": "v6.0.1", + "version": "v6.2.2", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "0cfed595758ec6e0a25591bdc8ca733c1896af32" + "reference": "863219fd713fa41cbcd285a79723f94672faff4d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/0cfed595758ec6e0a25591bdc8ca733c1896af32", - "reference": "0cfed595758ec6e0a25591bdc8ca733c1896af32", + "url": "https://api.github.com/repos/symfony/string/zipball/863219fd713fa41cbcd285a79723f94672faff4d", + "reference": "863219fd713fa41cbcd285a79723f94672faff4d", "shasum": "" }, "require": { - "php": ">=8.0.2", + "php": ">=8.1", "symfony/polyfill-ctype": "~1.8", "symfony/polyfill-intl-grapheme": "~1.0", "symfony/polyfill-intl-normalizer": "~1.0", @@ -5681,17 +5763,18 @@ "require-dev": { "symfony/error-handler": "^5.4|^6.0", "symfony/http-client": "^5.4|^6.0", + "symfony/intl": "^6.2", "symfony/translation-contracts": "^2.0|^3.0", "symfony/var-exporter": "^5.4|^6.0" }, "type": "library", "autoload": { - "psr-4": { - "Symfony\\Component\\String\\": "" - }, "files": [ "Resources/functions.php" ], + "psr-4": { + "Symfony\\Component\\String\\": "" + }, "exclude-from-classmap": [ "/Tests/" ] @@ -5721,7 +5804,7 @@ "utf8" ], "support": { - "source": "https://github.com/symfony/string/tree/v6.0.1" + "source": "https://github.com/symfony/string/tree/v6.2.2" }, "funding": [ { @@ -5737,50 +5820,50 @@ "type": "tidelift" } ], - "time": "2021-12-08T15:13:44+00:00" + "time": "2022-12-14T16:11:27+00:00" }, { "name": "thecodingmachine/safe", - "version": "v1.3.3", + "version": "v2.4.0", "source": { "type": "git", "url": "https://github.com/thecodingmachine/safe.git", - "reference": "a8ab0876305a4cdaef31b2350fcb9811b5608dbc" + "reference": "e788f3d09dcd36f806350aedb77eac348fafadd3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/a8ab0876305a4cdaef31b2350fcb9811b5608dbc", - "reference": "a8ab0876305a4cdaef31b2350fcb9811b5608dbc", + "url": "https://api.github.com/repos/thecodingmachine/safe/zipball/e788f3d09dcd36f806350aedb77eac348fafadd3", + "reference": "e788f3d09dcd36f806350aedb77eac348fafadd3", "shasum": "" }, "require": { - "php": ">=7.2" + "php": "^8.0" }, "require-dev": { - "phpstan/phpstan": "^0.12", + "phpstan/phpstan": "^1.5", + "phpunit/phpunit": "^9.5", "squizlabs/php_codesniffer": "^3.2", - "thecodingmachine/phpstan-strict-rules": "^0.12" + "thecodingmachine/phpstan-strict-rules": "^1.0" }, "type": "library", "extra": { "branch-alias": { - "dev-master": "0.1-dev" + "dev-master": "2.2.x-dev" } }, "autoload": { - "psr-4": { - "Safe\\": [ - "lib/", - "deprecated/", - "generated/" - ] - }, "files": [ "deprecated/apc.php", + "deprecated/array.php", + "deprecated/datetime.php", "deprecated/libevent.php", + "deprecated/misc.php", + "deprecated/password.php", "deprecated/mssql.php", "deprecated/stats.php", + "deprecated/strings.php", "lib/special_cases.php", + "deprecated/mysqli.php", "generated/apache.php", "generated/apcu.php", "generated/array.php", @@ -5801,6 +5884,7 @@ "generated/fpm.php", "generated/ftp.php", "generated/funchand.php", + "generated/gettext.php", "generated/gmp.php", "generated/gnupg.php", "generated/hash.php", @@ -5810,7 +5894,6 @@ "generated/image.php", "generated/imap.php", "generated/info.php", - "generated/ingres-ii.php", "generated/inotify.php", "generated/json.php", "generated/ldap.php", @@ -5819,20 +5902,14 @@ "generated/mailparse.php", "generated/mbstring.php", "generated/misc.php", - "generated/msql.php", "generated/mysql.php", - "generated/mysqli.php", - "generated/mysqlndMs.php", - "generated/mysqlndQc.php", "generated/network.php", "generated/oci8.php", "generated/opcache.php", "generated/openssl.php", "generated/outcontrol.php", - "generated/password.php", "generated/pcntl.php", "generated/pcre.php", - "generated/pdf.php", "generated/pgsql.php", "generated/posix.php", "generated/ps.php", @@ -5843,7 +5920,6 @@ "generated/sem.php", "generated/session.php", "generated/shmop.php", - "generated/simplexml.php", "generated/sockets.php", "generated/sodium.php", "generated/solr.php", @@ -5865,6 +5941,13 @@ "generated/yaz.php", "generated/zip.php", "generated/zlib.php" + ], + "classmap": [ + "lib/DateTime.php", + "lib/DateTimeImmutable.php", + "lib/Exceptions/", + "deprecated/Exceptions/", + "generated/Exceptions/" ] }, "notification-url": "https://packagist.org/downloads/", @@ -5874,9 +5957,9 @@ "description": "PHP core functions that throw exceptions instead of returning FALSE on error", "support": { "issues": "https://github.com/thecodingmachine/safe/issues", - "source": "https://github.com/thecodingmachine/safe/tree/v1.3.3" + "source": "https://github.com/thecodingmachine/safe/tree/v2.4.0" }, - "time": "2020-10-28T17:51:34+00:00" + "time": "2022-10-07T14:02:17+00:00" }, { "name": "theseer/tokenizer", @@ -5930,22 +6013,23 @@ }, { "name": "twig/twig", - "version": "v2.14.8", + "version": "v2.15.4", "source": { "type": "git", "url": "https://github.com/twigphp/Twig.git", - "reference": "06b450a2326aa879faa2061ff72fe1588b3ab043" + "reference": "3e059001d6d597dd50ea7c74dd2464b4adea48d3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/twigphp/Twig/zipball/06b450a2326aa879faa2061ff72fe1588b3ab043", - "reference": "06b450a2326aa879faa2061ff72fe1588b3ab043", + "url": "https://api.github.com/repos/twigphp/Twig/zipball/3e059001d6d597dd50ea7c74dd2464b4adea48d3", + "reference": "3e059001d6d597dd50ea7c74dd2464b4adea48d3", "shasum": "" }, "require": { - "php": ">=7.2.5", + "php": ">=7.1.3", "symfony/polyfill-ctype": "^1.8", - "symfony/polyfill-mbstring": "^1.3" + "symfony/polyfill-mbstring": "^1.3", + "symfony/polyfill-php72": "^1.8" }, "require-dev": { "psr/container": "^1.0", @@ -5954,7 +6038,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "2.14-dev" + "dev-master": "2.15-dev" } }, "autoload": { @@ -5993,7 +6077,7 @@ ], "support": { "issues": "https://github.com/twigphp/Twig/issues", - "source": "https://github.com/twigphp/Twig/tree/v2.14.8" + "source": "https://github.com/twigphp/Twig/tree/v2.15.4" }, "funding": [ { @@ -6005,20 +6089,20 @@ "type": "tidelift" } ], - "time": "2021-11-25T13:38:06+00:00" + "time": "2022-12-27T12:26:20+00:00" }, { "name": "vimeo/psalm", - "version": "v4.15.0", + "version": "4.30.0", "source": { "type": "git", "url": "https://github.com/vimeo/psalm.git", - "reference": "a1b5e489e6fcebe40cb804793d964e99fc347820" + "reference": "d0bc6e25d89f649e4f36a534f330f8bb4643dd69" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/vimeo/psalm/zipball/a1b5e489e6fcebe40cb804793d964e99fc347820", - "reference": "a1b5e489e6fcebe40cb804793d964e99fc347820", + "url": "https://api.github.com/repos/vimeo/psalm/zipball/d0bc6e25d89f649e4f36a534f330f8bb4643dd69", + "reference": "d0bc6e25d89f649e4f36a534f330f8bb4643dd69", "shasum": "" }, "require": { @@ -6026,7 +6110,7 @@ "amphp/byte-stream": "^1.5", "composer/package-versions-deprecated": "^1.8.0", "composer/semver": "^1.4 || ^2.0 || ^3.0", - "composer/xdebug-handler": "^1.1 || ^2.0", + "composer/xdebug-handler": "^1.1 || ^2.0 || ^3.0", "dnoegel/php-xdg-base-dir": "^0.1.1", "ext-ctype": "*", "ext-dom": "*", @@ -6043,6 +6127,7 @@ "php": "^7.1|^8", "sebastian/diff": "^3.0 || ^4.0", "symfony/console": "^3.4.17 || ^4.1.6 || ^5.0 || ^6.0", + "symfony/polyfill-php80": "^1.25", "webmozart/path-util": "^2.3" }, "provide": { @@ -6056,6 +6141,7 @@ "phpdocumentor/reflection-docblock": "^5", "phpmyadmin/sql-parser": "5.1.0||dev-master", "phpspec/prophecy": ">=1.9.0", + "phpstan/phpdoc-parser": "1.2.* || 1.6.4", "phpunit/phpunit": "^9.0", "psalm/plugin-phpunit": "^0.16", "slevomat/coding-standard": "^7.0", @@ -6084,13 +6170,13 @@ } }, "autoload": { - "psr-4": { - "Psalm\\": "src/Psalm/" - }, "files": [ "src/functions.php", "src/spl_object_id.php" - ] + ], + "psr-4": { + "Psalm\\": "src/Psalm/" + } }, "notification-url": "https://packagist.org/downloads/", "license": [ @@ -6109,27 +6195,27 @@ ], "support": { "issues": "https://github.com/vimeo/psalm/issues", - "source": "https://github.com/vimeo/psalm/tree/v4.15.0" + "source": "https://github.com/vimeo/psalm/tree/4.30.0" }, - "time": "2021-12-07T11:25:29+00:00" + "time": "2022-11-06T20:37:08+00:00" }, { "name": "webmozart/assert", - "version": "1.10.0", + "version": "1.11.0", "source": { "type": "git", "url": "https://github.com/webmozarts/assert.git", - "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25" + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/webmozarts/assert/zipball/6964c76c7804814a842473e0c8fd15bab0f18e25", - "reference": "6964c76c7804814a842473e0c8fd15bab0f18e25", + "url": "https://api.github.com/repos/webmozarts/assert/zipball/11cb2199493b2f8a3b53e7f19068fc6aac760991", + "reference": "11cb2199493b2f8a3b53e7f19068fc6aac760991", "shasum": "" }, "require": { - "php": "^7.2 || ^8.0", - "symfony/polyfill-ctype": "^1.8" + "ext-ctype": "*", + "php": "^7.2 || ^8.0" }, "conflict": { "phpstan/phpstan": "<0.12.20", @@ -6167,9 +6253,58 @@ ], "support": { "issues": "https://github.com/webmozarts/assert/issues", - "source": "https://github.com/webmozarts/assert/tree/1.10.0" + "source": "https://github.com/webmozarts/assert/tree/1.11.0" + }, + "time": "2022-06-03T18:03:27+00:00" + }, + { + "name": "webmozart/glob", + "version": "4.6.0", + "source": { + "type": "git", + "url": "https://github.com/webmozarts/glob.git", + "reference": "3c17f7dec3d9d0e87b575026011f2e75a56ed655" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/webmozarts/glob/zipball/3c17f7dec3d9d0e87b575026011f2e75a56ed655", + "reference": "3c17f7dec3d9d0e87b575026011f2e75a56ed655", + "shasum": "" + }, + "require": { + "php": "^7.3 || ^8.0.0" + }, + "require-dev": { + "phpunit/phpunit": "^9.5", + "symfony/filesystem": "^5.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.1-dev" + } + }, + "autoload": { + "psr-4": { + "Webmozart\\Glob\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "A PHP implementation of Ant's glob.", + "support": { + "issues": "https://github.com/webmozarts/glob/issues", + "source": "https://github.com/webmozarts/glob/tree/4.6.0" }, - "time": "2021-03-09T10:59:23+00:00" + "time": "2022-05-24T19:45:58+00:00" }, { "name": "webmozart/path-util",