Skip to content

Commit d22a095

Browse files
committed
refactor: don't use reserved PHP keyword as parameter's name
1 parent b5f7e93 commit d22a095

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)