Determine return value from \Drupal\Core\Config\Config::get
#753
Labels
enhancement
New feature or request
\Drupal\Core\Config\Config::get
#753
Feature request
\Drupal\Core\Config\Config::get
returns mixed.Given the following code in a functional test:
When I analyze it with phpstan level 9 I get:
However we have config schema for
system.theme
that says thatdefault
is a string. Perhaps we can figure this out in phpstan-drupal so we don't need to make assertions about the data. However it might not be wise to do this. If we put the same code in to a kernel test then$theme
is in factnull
, so phpstan is right to complain about it.The text was updated successfully, but these errors were encountered: