Skip to content

Commit

Permalink
feat: require php 8+ (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
kbond committed Jan 22, 2023
1 parent b1e8f65 commit fbb32ae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
steps:
- uses: zenstruck/.github@php-cs-fixer
with:
php: 7.4
php: 8.0
key: ${{ secrets.GPG_PRIVATE_KEY }}
token: ${{ secrets.COMPOSER_TOKEN }}

Expand Down
5 changes: 2 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@
}
],
"require": {
"php": ">=7.4",
"php": ">=8.0",
"symfony/framework-bundle": "^5.4|^6.0",
"symfony/mailer": "^5.4|^6.0",
"symfony/polyfill-php80": "^1.23.1",
"zenstruck/assert": "^1.0",
"zenstruck/callback": "^1.1"
},
Expand All @@ -26,7 +25,7 @@
"symfony/phpunit-bridge": "^6.0",
"symfony/var-dumper": "^5.4|^6.0",
"symfony/yaml": "^5.4|^6.0",
"zenstruck/browser": "^1.0@dev"
"zenstruck/browser": "^1.0"
},
"config": {
"preferred-install": "dist",
Expand Down
2 changes: 1 addition & 1 deletion src/SentEmails.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ public function whereSubject(string $subject): self

public function whereSubjectContains(string $needle): self
{
return $this->where(fn(Email $email) => str_contains((string) $email->getSubject(), $needle));
return $this->where(fn(Email $email) => \str_contains((string) $email->getSubject(), $needle));
}

public function whereTag(string $tag): self
Expand Down

0 comments on commit fbb32ae

Please sign in to comment.