From fbb32ae20206b0407d06ca20c59207070a223278 Mon Sep 17 00:00:00 2001 From: Kevin Bond Date: Sun, 22 Jan 2023 10:14:05 -0500 Subject: [PATCH] feat: require php 8+ (#22) --- .github/workflows/ci.yml | 2 +- composer.json | 5 ++--- src/SentEmails.php | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 11ac2bf..f6a7702 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/composer.json b/composer.json index 22759c8..1e77b22 100644 --- a/composer.json +++ b/composer.json @@ -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" }, @@ -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", diff --git a/src/SentEmails.php b/src/SentEmails.php index 6914a63..d0c6ee5 100644 --- a/src/SentEmails.php +++ b/src/SentEmails.php @@ -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