diff --git a/composer.json b/composer.json index ecac66f0..07903b7f 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,7 @@ "doctrine/annotations": "^2.0.1", "laminas/laminas-coding-standard": "^2.5.0", "laminas/laminas-stdlib": "^3.18.0", - "phpunit/phpunit": "^10.4.2", + "phpunit/phpunit": "^10.5.0", "psalm/plugin-phpunit": "^0.19.0", "vimeo/psalm": "^5.15.0" }, diff --git a/composer.lock b/composer.lock index 4fa634d1..1f1671cb 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "f9649542e1e95f5d5a4e4db2461908ab", + "content-hash": "17a73f377dc3b1081647019b3e1c7988", "packages": [], "packages-dev": [ { @@ -1815,16 +1815,16 @@ }, { "name": "phpunit/phpunit", - "version": "10.4.2", + "version": "10.5.26", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "cacd8b9dd224efa8eb28beb69004126c7ca1a1a1" + "reference": "42e2f13ceaa2e34461bc89bea75407550b40b2aa" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/cacd8b9dd224efa8eb28beb69004126c7ca1a1a1", - "reference": "cacd8b9dd224efa8eb28beb69004126c7ca1a1a1", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/42e2f13ceaa2e34461bc89bea75407550b40b2aa", + "reference": "42e2f13ceaa2e34461bc89bea75407550b40b2aa", "shasum": "" }, "require": { @@ -1864,7 +1864,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "10.4-dev" + "dev-main": "10.5-dev" } }, "autoload": { @@ -1896,7 +1896,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/10.4.2" + "source": "https://github.com/sebastianbergmann/phpunit/tree/10.5.26" }, "funding": [ { @@ -1912,7 +1912,7 @@ "type": "tidelift" } ], - "time": "2023-10-26T07:21:45+00:00" + "time": "2024-07-08T05:30:46+00:00" }, { "name": "psalm/plugin-phpunit", diff --git a/test/Generator/AbstractGeneratorTest.php b/test/Generator/AbstractGeneratorTest.php index 65629ee5..acc256bd 100644 --- a/test/Generator/AbstractGeneratorTest.php +++ b/test/Generator/AbstractGeneratorTest.php @@ -14,20 +14,11 @@ class AbstractGeneratorTest extends TestCase { public function testConstructor() { - $generator = $this->getMockForAbstractClass( - AbstractGenerator::class, + $generator = $this->getMockForAbstractClass(AbstractGenerator::class, [ [ - [ - 'indentation' => 'foo', - ], + 'indentation' => 'foo', ], - '', - true, - true, - true, - [], - false - ); + ]); self::assertInstanceOf(GeneratorInterface::class, $generator); self::assertSame('foo', $generator->getIndentation()); diff --git a/test/Generator/TestAsset/ParameterClass.php b/test/Generator/TestAsset/ParameterClass.php index 29e3b710..bcfb8c45 100644 --- a/test/Generator/TestAsset/ParameterClass.php +++ b/test/Generator/TestAsset/ParameterClass.php @@ -75,7 +75,7 @@ public function defaultConstant($con = self::FOO) } - public function defaultObjectEqualsNullAndNotOptional(?\stdClass $a, $b) + public function nullableAndRequired(?\stdClass $a, $b) { }