Skip to content

Commit

Permalink
Fix PHP 8.1 deprecation notice (#4972)
Browse files Browse the repository at this point in the history
* Fix PHP 8.1 deprecation notice

* Add an extra set of parens
  • Loading branch information
DieterHolvoet committed Jan 2, 2022
1 parent a29d8c8 commit 786948b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Drupal/DrupalKernelTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ protected function findAppropriateServicesFile($module, $services, $dir)
*/
protected function addDrushServiceProvider($serviceProviderName, $serviceYmlPath = '')
{
if (file_exists($serviceYmlPath)) {
if (($serviceYmlPath !== null) && file_exists($serviceYmlPath)) {
$this->serviceYamls['app'][$serviceProviderName] = $serviceYmlPath;
}
}
Expand Down

0 comments on commit 786948b

Please sign in to comment.