-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
\LastDragon_ru\LaraASP\Documentator\Processor\InstanceFactory
helpe…
…r to make phpstan happy.
- Loading branch information
1 parent
425c3ad
commit 2dab326
Showing
5 changed files
with
59 additions
and
23 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php declare(strict_types = 1); | ||
|
||
namespace LastDragon_ru\LaraASP\Documentator\Processor; | ||
|
||
use Closure; | ||
|
||
/** | ||
* @see https://github.com/phpstan/phpstan/issues/8770 | ||
* @see https://github.com/phpstan/phpstan/issues/9521 (?) | ||
* @see https://github.com/phpstan/phpstan/discussions/11736 | ||
* | ||
* @template TInstance of object | ||
*/ | ||
readonly class InstanceFactory { | ||
public function __construct( | ||
/** | ||
* @var class-string<TInstance> | ||
*/ | ||
public string $class, | ||
/** | ||
* @var Closure(TInstance): void | ||
*/ | ||
public Closure $factory, | ||
) { | ||
// empty | ||
} | ||
} |
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
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