Skip to content

Commit

Permalink
cs-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Nov 23, 2024
1 parent f1ff774 commit e55859b
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions src/Psalm/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
use function sha1;
use function simplexml_import_dom;
use function str_contains;
use function str_ends_with;
use function str_replace;
use function str_starts_with;
use function strlen;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Psalm\Internal\Analyzer\Statements\Expression\BinaryOp;

use Decimal\Decimal;
use PhpParser;
use Psalm\CodeLocation;
use Psalm\Codebase;
Expand Down Expand Up @@ -688,7 +689,7 @@ private static function analyzeOperands(
&& strtolower($non_decimal_type->value) === "decimal\\decimal"
) {
$result_type = Type::combineUnionTypes(
new Union([new TNamedObject(\Decimal\Decimal::class)]),
new Union([new TNamedObject(Decimal::class)]),

Check failure on line 692 in src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php

View workflow job for this annotation

GitHub Actions / build

UndefinedClass

src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php:692:53: UndefinedClass: Class, interface or enum named Decimal\Decimal does not exist (see https://psalm.dev/019)

Check failure on line 692 in src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php

View workflow job for this annotation

GitHub Actions / build

MixedArgument

src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php:692:53: MixedArgument: Argument 1 of Psalm\Type\Atomic\TNamedObject::__construct cannot be mixed, expecting string (see https://psalm.dev/030)

Check failure on line 692 in src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php

View workflow job for this annotation

GitHub Actions / build

UndefinedClass

src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php:692:53: UndefinedClass: Class, interface or enum named Decimal\Decimal does not exist (see https://psalm.dev/019)

Check failure on line 692 in src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php

View workflow job for this annotation

GitHub Actions / build

MixedArgument

src/Psalm/Internal/Analyzer/Statements/Expression/BinaryOp/ArithmeticOpAnalyzer.php:692:53: MixedArgument: Argument 1 of Psalm\Type\Atomic\TNamedObject::__construct cannot be mixed, expecting string (see https://psalm.dev/030)
$result_type,
);
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
use function explode;
use function in_array;
use function str_contains;
use function str_ends_with;
use function strlen;
use function strtolower;
use function substr;
Expand Down
1 change: 0 additions & 1 deletion src/Psalm/Internal/Cli/Psalm.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@
use function str_repeat;
use function str_starts_with;
use function strlen;
use function strpos;
use function substr;
use function wordwrap;

Expand Down
1 change: 0 additions & 1 deletion src/Psalm/Internal/Codebase/InternalCallMapHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
use function str_ends_with;
use function str_starts_with;
use function strlen;
use function strpos;
use function strtolower;
use function substr;
use function version_compare;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
use Psalm\Type\Atomic\TTraitString;
use Psalm\Type\Atomic\TTrue;

use function get_class;
use function is_numeric;
use function strtolower;

Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Type/ParseTreeCreator.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
use function count;
use function in_array;
use function preg_match;
use function str_contains;
use function strlen;
use function strpos;
use function strtolower;
use function substr;

Expand Down
1 change: 0 additions & 1 deletion src/Psalm/Internal/Type/TypeCombiner.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@
use function array_values;
use function assert;
use function count;
use function get_class;
use function is_int;
use function is_numeric;
use function min;
Expand Down
1 change: 0 additions & 1 deletion src/Psalm/IssueBuffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
use function explode;
use function file_put_contents;
use function fwrite;
use function get_class;
use function implode;
use function in_array;
use function is_dir;
Expand Down

0 comments on commit e55859b

Please sign in to comment.