Skip to content

Commit

Permalink
[TASK] PHPStan fix up to :: Level 5
Browse files Browse the repository at this point in the history
  • Loading branch information
dkd-kaehm committed Aug 15, 2023
1 parent 640d234 commit 2d9fabf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Build/Test/phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ includes:
- %rootDir%/../phpstan-phpunit/extension.neon

parameters:
level: 3
level: 5
treatPhpDocTypesAsCertain: false

bootstrapFiles:
Expand Down
8 changes: 1 addition & 7 deletions Classes/Utility/ShellUtility.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,6 @@
*/
class ShellUtility
{
/**
* @return string
*/
public static function getLanguagePrefix(): string
{
if (!empty($GLOBALS['TYPO3_CONF_VARS']['SYS']['UTF8filesystem']) && !Environment::isWindows()) {
Expand All @@ -37,15 +34,12 @@ public static function getLanguagePrefix(): string

/**
* Backwards compatibility to 6.x, is available in CommandUtility in 7.x
*
* @param string $argument
* @return string
*/
public static function escapeShellArgument(string $argument): string
{
$isUTF8Filesystem = !empty($GLOBALS['TYPO3_CONF_VARS']['SYS']['UTF8filesystem']);
if ($isUTF8Filesystem) {
$currentLocale = setlocale(LC_CTYPE, 0);
$currentLocale = setlocale(LC_CTYPE, '0');
setlocale(
LC_CTYPE,
$GLOBALS['TYPO3_CONF_VARS']['SYS']['systemLocale']
Expand Down

0 comments on commit 2d9fabf

Please sign in to comment.