You've already forked php-flasher
mirror of
https://github.com/php-flasher/php-flasher.git
synced 2026-04-05 12:32:55 +01:00
remove static from anonymous function
This commit is contained in:
@@ -45,7 +45,7 @@ final class FilterBuilder
|
||||
$specification = $this->getSpecification();
|
||||
|
||||
if (null !== $specification) {
|
||||
$envelopes = array_filter($envelopes, static function (Envelope $envelope) use ($specification) {
|
||||
$envelopes = array_filter($envelopes, function (Envelope $envelope) use ($specification) {
|
||||
return $specification->isSatisfiedBy($envelope);
|
||||
});
|
||||
}
|
||||
@@ -53,7 +53,7 @@ final class FilterBuilder
|
||||
$orderings = $this->getOrderings();
|
||||
|
||||
if (null !== $orderings) {
|
||||
usort($envelopes, static function (Envelope $a, Envelope $b) use ($orderings) {
|
||||
usort($envelopes, function (Envelope $a, Envelope $b) use ($orderings) {
|
||||
foreach ($orderings as $field => $ordering) {
|
||||
if (FilterBuilder::ASC !== $ordering) {
|
||||
list($a, $b) = array($b, $a);
|
||||
|
||||
Reference in New Issue
Block a user