diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 48f2db4f..ae39e76b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -21,6 +21,7 @@ updates: - dependency-name: "phpunit/phpunit" versions: [ ">= 9.0.0" ] - dependency-name: "rector/rector" + - dependency-name: "thecodingmachine/safe" versioning-strategy: "increase" commit-message: prefix: "[Dependabot] " diff --git a/composer.json b/composer.json index d431ad43..8a1c49a3 100644 --- a/composer.json +++ b/composer.json @@ -24,7 +24,8 @@ "homepage": "https://www.sabberworm.com/blog/2010/6/10/php-css-parser", "require": { "php": "^7.2.0 || ~8.0.0 || ~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0", - "ext-iconv": "*" + "ext-iconv": "*", + "thecodingmachine/safe": "^1.3 || ^2.5 || ^3.3" }, "require-dev": { "php-parallel-lint/php-parallel-lint": "1.4.0", diff --git a/config/php-cs-fixer.php b/config/php-cs-fixer.php index 96b39bbb..c10bf59a 100644 --- a/config/php-cs-fixer.php +++ b/config/php-cs-fixer.php @@ -40,7 +40,6 @@ 'yoda_style' => ['equal' => false, 'identical' => false, 'less_and_greater' => false], // function notation - 'native_function_invocation' => ['include' => ['@all']], 'nullable_type_declaration_for_default_null_value' => true, // import