Skip to content

Commit

Permalink
stan fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dvnc0 committed Sep 12, 2023
1 parent 66598d1 commit b3e77ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
5 changes: 2 additions & 3 deletions src/App/Actions/Action_Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
use Exception;

/**
* @property Injector SInjector
* @property Injector $Injector
*/
abstract class Action_Base
{
Expand Down Expand Up @@ -68,8 +68,7 @@ abstract public function execute(Request $Request): Request_Response;
/**
* Call a method on the Application
*
* @param string $name Method name
* @param array $arguments Method arguments
* @param string $name Method name
* @return mixed
*/
public function __get(string $name) {
Expand Down
2 changes: 1 addition & 1 deletion src/App/Injector/Injector.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ protected function createFreshInstance(string $class_name, array $dependencies):
$constructor_args = [];

foreach ($constructor_params as $param) {
$param_class = $param->getType()->getName();
$param_class = $param->getType()->getName(); // @phpstan-ignore-line
$param_name = $param->getName();

if (!empty($param_class) && class_exists($param_class)) {
Expand Down
5 changes: 2 additions & 3 deletions src/App/Tasks/Task_Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use Exception;

/**
* @property Injector SInjector
* @property Injector $Injector
*/
abstract class Task_Base
{
Expand Down Expand Up @@ -61,8 +61,7 @@ abstract public function execute(): Task_Response;
/**
* Call a method on the Application
*
* @param string $name Method name
* @param array $arguments Method arguments
* @param string $name Method name
* @return mixed
*/
public function __get(string $name) {
Expand Down

0 comments on commit b3e77ff

Please sign in to comment.