Skip to content

Commit e41088b

Browse files
committed
Update dependencies, fix issues reported by latest PHPStan
1 parent c83ee94 commit e41088b

File tree

4 files changed

+36
-33
lines changed

4 files changed

+36
-33
lines changed

composer.lock

Lines changed: 30 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Toolkit/Core/Builder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ final public function __construct()
9595
*/
9696
final public static function create()
9797
{
98+
/** @var static<TClass> */
9899
return new static();
99100
}
100101

src/Toolkit/Core/Legacy/Introspector.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ class Introspector
5858
*/
5959
public static function getService(ContainerInterface $container, string $service)
6060
{
61+
/** @var static<T,AbstractProvider,AbstractEntity,ProviderContext<AbstractProvider,AbstractEntity>> */
6162
return new static(
6263
$service,
6364
$container->getName($service),
@@ -77,6 +78,7 @@ public static function getService(ContainerInterface $container, string $service
7778
*/
7879
public static function get(string $class)
7980
{
81+
/** @var static<T,AbstractProvider,AbstractEntity,ProviderContext<AbstractProvider,AbstractEntity>> */
8082
return new static(
8183
$class,
8284
$class,

src/Toolkit/Core/Pipeline.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,23 +94,23 @@ public function stream(iterable $payload, $arg = null)
9494
*
9595
* @param iterable<T0>|T0 $payload
9696
* @param T1 $arg
97-
* @return static<TInput&T0,TOutput,TArgument&T1>
97+
* @return self<TInput&T0,TOutput,TArgument&T1>
9898
*/
9999
private function withPayload($payload, $arg, bool $stream)
100100
{
101101
if ($this->HasPayload) {
102102
throw new LogicException('Payload already set');
103103
}
104104

105-
/** @var static<T0,TOutput,T1> */
105+
/** @var self<T0,TOutput,T1> */
106106
// @phpstan-ignore varTag.nativeType
107107
$pipeline = $this;
108108
$pipeline = $pipeline
109109
->with('HasPayload', true)
110110
->with('PayloadIsStream', $stream)
111111
->with('Payload', $payload)
112112
->with('Arg', $arg);
113-
/** @var static<TInput&T0,TOutput,TArgument&T1> */
113+
/** @var self<TInput&T0,TOutput,TArgument&T1> */
114114
return $pipeline;
115115
}
116116

0 commit comments

Comments
 (0)