diff --git a/tests/Doctrine/Tests/Common/Proxy/ProxyGeneratorTest.php b/tests/Doctrine/Tests/Common/Proxy/ProxyGeneratorTest.php index 68d30f9ee..16be54a50 100644 --- a/tests/Doctrine/Tests/Common/Proxy/ProxyGeneratorTest.php +++ b/tests/Doctrine/Tests/Common/Proxy/ProxyGeneratorTest.php @@ -313,8 +313,9 @@ public function testClassWithPhp71NullableOptionalNonLastParameterOnProxiedMetho } $this->assertContains( - 'public function midSignatureNullableParameter(?string $param = NULL, $secondParam)', - file_get_contents(__DIR__ . '/generated/__CG__DoctrineTestsCommonProxyPhp71NullableDefaultedNonOptionalHintClass.php') + 'public function midSignatureNullableParameter(string $param = NULL, $secondParam)', + file_get_contents(__DIR__ . '/generated/__CG__DoctrineTestsCommonProxyPhp71NullableDefaultedNonOptionalHintClass.php'), + 'Signature allows nullable type, although explicit "?" marker isn\'t used in the proxy' ); $this->assertContains(