-
-
Notifications
You must be signed in to change notification settings - Fork 687
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Rector to commit 61016bf5307b804df5babb81db27cacbccb12efa
rectorphp/rector-src@61016bf [CodeQuality] Use existing PhpAttributeAnalyzer service instead of AttributeFinder from Doctrine package on DynamicDocBlockPropertyToNativePropertyRector (#6382)
- Loading branch information
1 parent
1a957f8
commit adf15bb
Showing
9 changed files
with
62 additions
and
27 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
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,33 @@ | ||
<?php | ||
|
||
namespace RectorPrefix202410\Illuminate\Container\Attributes; | ||
|
||
use Attribute; | ||
use RectorPrefix202410\Illuminate\Contracts\Container\Container; | ||
use RectorPrefix202410\Illuminate\Contracts\Container\ContextualAttribute; | ||
#[Attribute(Attribute::TARGET_PARAMETER)] | ||
class RouteParameter implements ContextualAttribute | ||
{ | ||
/** | ||
* @var string | ||
*/ | ||
public $parameter; | ||
/** | ||
* Create a new class instance. | ||
*/ | ||
public function __construct(string $parameter) | ||
{ | ||
$this->parameter = $parameter; | ||
} | ||
/** | ||
* Resolve the route parameter. | ||
* | ||
* @param self $attribute | ||
* @param \Illuminate\Contracts\Container\Container $container | ||
* @return mixed | ||
*/ | ||
public static function resolve(self $attribute, Container $container) | ||
{ | ||
return $container->make('request')->route($attribute->parameter); | ||
} | ||
} |
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
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