Skip to content

Commit ca4e34a

Browse files
authored
Merge pull request #183 from BeAPI/fix/param-name-reserved-keyword
refactor: don't use reserved PHP keyword as parameter's name
2 parents b5f7e93 + d22a095 commit ca4e34a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎inc/Service_Container.php‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,15 @@ public function register_service( string $service ): bool {
7575
/**
7676
* Instantiate a single service.
7777
*
78-
* @param string $class Service class to instantiate.
78+
* @param string $classname Service class to instantiate.
7979
*
8080
* @return Service
8181
*/
82-
private function instantiate_service( string $class ): Service {
82+
private function instantiate_service( string $classname ): Service {
8383
/**
8484
* @var Service $service
8585
*/
86-
$service = new $class();
86+
$service = new $classname();
8787
$service->register( $this );
8888
$this->services[ $service->get_service_name() ] = $service;
8989

0 commit comments

Comments
 (0)