Skip to content

Commit 1f9dd38

Browse files
committed
Update Pipeline.php
1 parent 4e9f6a7 commit 1f9dd38

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Pipeline.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public static function make(?Container $container = null): Pipeline
7676
$container = ContainerConcrete::getInstance();
7777
}
7878

79-
return $container->make(static::class);
79+
return $container->make((string) static::class);
8080
}
8181

8282
/**
@@ -209,7 +209,7 @@ protected function prepareDestination(Closure $destination)
209209
*/
210210
protected function carry()
211211
{
212-
return function ($stack, $pipe) {
212+
return function (array $stack, $pipe) {
213213
return function ($passable) use ($stack, $pipe) {
214214
$this->fireEvent(PipeExecutionStarted::class, $pipe, $passable);
215215

@@ -252,10 +252,9 @@ protected function carry()
252252
/**
253253
* Parse full pipe string to get name and parameters.
254254
*
255-
* @param string $pipe
256255
* @return array
257256
*/
258-
protected function parsePipeString($pipe)
257+
protected function parsePipeString(string $pipe)
259258
{
260259
[$name, $parameters] = array_pad(explode(':', $pipe, 2), 2, []);
261260

0 commit comments

Comments
 (0)