-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix error when proxying a method with a mixed argument with a null de…
…fault value Without this change, trying to proxy a Symfony\Component\Console\Command\Command would result in an InvalidArgumentException `Type "mixed" cannot be nullable` from the Laminas code generator.
- Loading branch information
1 parent
0235d4d
commit 2c8a6cf
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
tests/ProxyManagerTestAsset/ClassWithNullDefaultMethodArguments.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace ProxyManagerTestAsset; | ||
|
||
class ClassWithNullDefaultMethodArguments | ||
{ | ||
public function acceptMixed(mixed $param = null) | ||
{ | ||
return $param; | ||
} | ||
} |