Skip to content
This repository was archived by the owner on Nov 5, 2025. It is now read-only.

Commit cd4c19a

Browse files
committed
Use strict typing
1 parent 02dbf2c commit cd4c19a

File tree

89 files changed

+92
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+92
-3
lines changed

src/PHPSemVerChecker/Analyzer/Analyzer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace PHPSemVerChecker\Analyzer;
45

src/PHPSemVerChecker/Analyzer/ClassAnalyzer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace PHPSemVerChecker\Analyzer;
45

src/PHPSemVerChecker/Analyzer/ClassMethodAnalyzer.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace PHPSemVerChecker\Analyzer;
45

@@ -61,12 +62,12 @@ public function analyze(Stmt $contextBefore, Stmt $contextAfter): Report
6162

6263
$methodsBeforeKeyed = [];
6364
foreach ($methodsBefore as $method) {
64-
$methodsBeforeKeyed[strtolower($method->name)] = $method;
65+
$methodsBeforeKeyed[$method->name->toLowerString()] = $method;
6566
}
6667

6768
$methodsAfterKeyed = [];
6869
foreach ($methodsAfter as $method) {
69-
$methodsAfterKeyed[strtolower($method->name)] = $method;
70+
$methodsAfterKeyed[$method->name->toLowerString()] = $method;
7071
}
7172

7273
$methodNamesBefore = array_keys($methodsBeforeKeyed);

src/PHPSemVerChecker/Analyzer/FunctionAnalyzer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace PHPSemVerChecker\Analyzer;
45

src/PHPSemVerChecker/Analyzer/InterfaceAnalyzer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace PHPSemVerChecker\Analyzer;
45

src/PHPSemVerChecker/Analyzer/PropertyAnalyzer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace PHPSemVerChecker\Analyzer;
45

src/PHPSemVerChecker/Analyzer/TraitAnalyzer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace PHPSemVerChecker\Analyzer;
45

src/PHPSemVerChecker/Comparator/Implementation.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace PHPSemVerChecker\Comparator;
45

src/PHPSemVerChecker/Comparator/Node.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace PHPSemVerChecker\Comparator;
45

src/PHPSemVerChecker/Comparator/Signature.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
declare(strict_types=1);
23

34
namespace PHPSemVerChecker\Comparator;
45

0 commit comments

Comments
 (0)