Skip to content

Commit

Permalink
#751 checking signature of proxies of PHP 7.1-style nullable paramete…
Browse files Browse the repository at this point in the history
…rs with default value, yet not optional (not in last position in the signature)
  • Loading branch information
Ocramius committed Dec 3, 2016
1 parent 8c4cb0b commit 84c02e4
Showing 1 changed file with 20 additions and 0 deletions.
@@ -0,0 +1,20 @@
<?php

namespace Doctrine\Tests\Common\Proxy;

/**
* Test PHP 7.1 compatibility of nullable type hints generation on a non-optional hinted parameter that is nullable,
* yet has a default parameter
*
* @see https://github.com/doctrine/common/issues/751
*/
class Php71NullableDefaultedNonOptionalHintClass
{
public function midSignatureNullableParameter(?string $param = null, $secondParam)
{
}

public function midSignatureNotNullableHintedParameter(?string $param = 'foo', $secondParam)
{
}
}

0 comments on commit 84c02e4

Please sign in to comment.