1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

Drop symfony/polyfill-php80 dependency

This commit is contained in:
Bruce Weirdan 2022-12-22 13:06:21 -04:00
parent 390da64150
commit 7924a52a62
No known key found for this signature in database
GPG Key ID: CFC3AAB181751B0D
4 changed files with 3 additions and 11 deletions

View File

@ -36,8 +36,7 @@
"sebastian/diff": "^4.0",
"spatie/array-to-xml": "^2.17.0",
"symfony/console": "^4.1.6 || ^5.0 || ^6.0",
"symfony/filesystem": "^5.4 || ^6.0",
"symfony/polyfill-php80": "^1.25"
"symfony/filesystem": "^5.4 || ^6.0"
},
"provide": {
"psalm/psalm": "self.version"

View File

@ -71,11 +71,6 @@ final class CliUtils
$in_phar = Phar::running() || strpos(__NAMESPACE__, 'HumbugBox');
if ($in_phar) {
// require this before anything else
$stringable_path = __DIR__ . '/../../../vendor/symfony/polyfill-php80/Resources/stubs/Stringable.php';
if (file_exists($stringable_path)) {
require_once $stringable_path;
}
require_once __DIR__ . '/../../../vendor/autoload.php';
// hack required for JsonMapper

View File

@ -22,14 +22,13 @@ use Psalm\Type\Atomic\TNever;
use Psalm\Type\Atomic\TString;
use Psalm\Type\Atomic\TTemplateParamClass;
use Psalm\Type\Atomic\TTrue;
use Stringable;
use function count;
use function get_class;
use function get_object_vars;
use function strpos;
final class MutableUnion implements TypeNode, Stringable
final class MutableUnion implements TypeNode
{
use UnionTrait;

View File

@ -9,7 +9,6 @@ use Psalm\Type\Atomic\TClassString;
use Psalm\Type\Atomic\TLiteralFloat;
use Psalm\Type\Atomic\TLiteralInt;
use Psalm\Type\Atomic\TLiteralString;
use Stringable;
use function get_object_vars;
@ -40,7 +39,7 @@ use function get_object_vars;
* parent_nodes?: array<string, DataFlowNode>
* }
*/
final class Union implements TypeNode, Stringable
final class Union implements TypeNode
{
use ImmutableNonCloneableTrait;
use UnionTrait;