Skip to content

Commit

Permalink
cs-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Oct 22, 2023
1 parent 292ed06 commit 8fadd1b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
15 changes: 14 additions & 1 deletion psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="dev-master@973a3fa554b4a2016e2a551dce2206fb47084050">
<files psalm-version="dev-master@292ed063233e29d59d0bde61bb6daedee94d55bb">
<file src="examples/TemplateChecker.php">
<PossiblyUndefinedIntArrayOffset>
<code><![CDATA[$comment_block->tags['variablesfrom'][0]]]></code>
Expand All @@ -16,6 +16,9 @@
<PossiblyNullArgument>
<code>$deprecated_element_xml</code>
</PossiblyNullArgument>
<PropertyTypeCoercion>
<code>$this</code>
</PropertyTypeCoercion>
</file>
<file src="src/Psalm/Config/FileFilter.php">
<PossiblyUndefinedIntArrayOffset>
Expand Down Expand Up @@ -622,6 +625,16 @@
<code>hasLowercaseString</code>
</PossiblyUnusedMethod>
</file>
<file src="tests/TestConfig.php">
<InvalidExtendClass>
<code>Config</code>
</InvalidExtendClass>
<MethodSignatureMismatch>
<code>public function __construct()</code>
<code>public function getComposerFilePathForClassLike(string $fq_classlike_name): bool</code>
<code>public function getProjectDirectories(): array</code>
</MethodSignatureMismatch>
</file>
<file src="vendor/nikic/php-parser/lib/PhpParser/Node/Expr/ArrowFunction.php">
<PossiblyUndefinedStringArrayOffset>
<code><![CDATA[$subNodes['expr']]]></code>
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Analyzer/ClassLikeAnalyzer.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public static function checkFullyQualifiedClassLikeName(
?string $calling_method_id,
array $suppressed_issues,
?ClassLikeNameOptions $options = null,
bool $check_classes = true
bool $check_classes = true,
): ?bool {
if ($options === null) {
$options = new ClassLikeNameOptions();
Expand Down
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Type/TypeParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -962,7 +962,7 @@ private static function getTypeFromGenericTree(
$get_int_range_bound = static function (
ParseTree $parse_tree,
Union $generic_param,
string $bound_name
string $bound_name,
): ?int {
if (!$parse_tree instanceof Value
|| count($generic_param->getAtomicTypes()) > 1
Expand Down

0 comments on commit 8fadd1b

Please sign in to comment.