Skip to content

Commit

Permalink
Fix PHP 8.2 deprecation.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagg-design committed Nov 30, 2024
1 parent 716ebe0 commit 27501b0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/tad/FunctionMocker/MockWrapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,12 @@ class MockWrapper
*/
protected $classTemplate;

public function __construct($originalClassName = '', ClassTemplateInterface $classTemplate = null, MethodCodeInterface $methodCode = null)
/**
* @var MethodCode|MethodCodeInterface
*/
private $methodCode;

public function __construct($originalClassName = '', ClassTemplateInterface $classTemplate = null, MethodCodeInterface $methodCode = null)
{
$this->originalClassName = $originalClassName;
$this->classTemplate = $classTemplate ?: new ClassTemplate();
Expand Down

0 comments on commit 27501b0

Please sign in to comment.