Skip to content

Commit 6005f39

Browse files
committed
Fix workflows
1 parent 75c0eaf commit 6005f39

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.github/workflows/rector.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,5 @@ jobs:
6464
6565
- name: Analyze for refactoring
6666
run: |
67-
composer global require --dev rector/rector:^0.12.10
67+
composer global require --dev rector/rector:dev-main
6868
rector process --dry-run --no-progress-bar

phpunit.xml.dist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
convertErrorsToExceptions="true"
1111
convertNoticesToExceptions="true"
1212
convertWarningsToExceptions="true"
13-
executionOrder="random"
1413
failOnRisky="true"
1514
failOnWarning="true"
1615
stopOnError="false"

rector.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@
7777
__DIR__ . '/tests',
7878
],
7979

80+
// Ignore files that should not be namespaced
81+
NormalizeNamespaceByPSR4ComposerAutoloadRector::class => [
82+
__DIR__ . '/src/Helpers',
83+
],
84+
8085
// May load view files directly when detecting classes
8186
StringClassNameToClassConstantRector::class,
8287

src/Structures/FileObject.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function setBasename(?string $basename = null): self
3535
*
3636
* @param string $suffix Optional suffix to omit from the base name returned
3737
*/
38-
public function getBasename($suffix = null): string
38+
public function getBasename($suffix = ''): string
3939
{
4040
if ($this->basename) {
4141
return basename($this->basename, $suffix);

0 commit comments

Comments
 (0)