Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
php-version: [ '8.4', '8.5' ]
php-version: [ '8.5' ]

name: Run tests on PHP v${{ matrix.php-version }}

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
}
],
"require": {
"php": ">=8.4"
"php": ">=8.5"
},
"require-dev": {
"phpunit/phpunit": "^12"
"phpunit/phpunit": "^13"
},
"autoload": {
"psr-4": {
Expand Down
803 changes: 511 additions & 292 deletions composer.lock

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Analyser/PatternAnalyser.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@ protected function analyseEntry(EntryInterface $entry, string $possibleInsightCl

return $return;
}
}
}
5 changes: 3 additions & 2 deletions src/Detective/Detective.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ public function detect(): LogInterface
return 0;
});

return (new $detectionResults[0]["class"]())->setLogFile($this->logFile);
$bestDetectionResult = array_first($detectionResults);
return new $bestDetectionResult["class"]()->setLogFile($this->logFile);
}
}
}
2 changes: 1 addition & 1 deletion src/Detective/LinePatternDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ public function detect(): bool|float

return $matchingCounter / count($lines);
}
}
}
2 changes: 1 addition & 1 deletion src/Detective/MultiPatternDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ public function detect(): bool|float

return true;
}
}
}
2 changes: 1 addition & 1 deletion src/Detective/SinglePatternDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ public function detect(): bool|float
return false;
}
}
}
}
2 changes: 1 addition & 1 deletion src/Detective/WeightedSinglePatternDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,4 @@ public function detect(): bool|float
return false;
}
}
}
}
2 changes: 1 addition & 1 deletion src/Printer/PatternModification.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,4 @@ public function modify(string $text): string
{
return preg_replace($this->pattern, $this->replacement, $text);
}
}
}
2 changes: 1 addition & 1 deletion src/Printer/Printer.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ protected function printEntry(?EntryInterface $entry = null): string
* @return string
*/
abstract protected function printLine(LineInterface $line): string;
}
}
Loading