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
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
}
],
"require": {
"php": ">=8.4"
"php": ">=8.5"
},
"require-dev": {
"phpunit/phpunit": "^12"
Expand Down
6 changes: 3 additions & 3 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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