Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add php 8.1, 8.2 support #64

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
24 changes: 14 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
language: php

php:
- 7.4
- 8.0
- nightly

matrix:
jobs:
include:
- php: 7.4
- php: 8.1
dist: focal
- php: 8.1
dist: focal
env: dependencies=lowest
- php: 8.0
- php: 8.2
dist: focal
- php: 8.2
dist: focal
env: dependencies=lowest

before_install:
- sudo apt-get update
- sudo apt-get install libonig5
- php -v
- composer self-update
- composer global require scrutinizer/ocular

install:
- travis_retry composer install --no-interaction --prefer-source
Expand All @@ -23,5 +28,4 @@ script:
- ./vendor/bin/phpunit --coverage-clover=coverage.clover

after_script:
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
- ~/.composer/vendor/bin/ocular code-coverage:upload --format=php-clover coverage.clover
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,22 @@
}
],
"require": {
"php": ">=7.4",
"symfony/options-resolver": "^4.4|^5.3"
"php": "~8.1.0|~8.2.0",
"symfony/options-resolver": "^4.4|^5.3|^6.2"
},
"require-dev": {
"doctrine/cache": "^2.1.1",
"doctrine/common": "^3.1.2",
"doctrine/orm": "^2.9.3",
"phpunit/phpunit": "^8.0|^9.0",
"symfony/dependency-injection": "^4.4|^5.3",
"symfony/config": "^4.4|^5.3",
"symfony/var-dumper": "^4.4|^5.3",
"symfony/yaml": "^4.4|^5.3",
"symfony/dependency-injection": "^4.4|^5.3|^6.2",
"symfony/config": "^4.4|^5.3|^6.2",
"symfony/var-dumper": "^4.4|^5.3|^6.2",
"symfony/yaml": "^4.4|^5.3|^6.2",
"twig/twig": "^3.3.2",
"phpspec/prophecy-phpunit": "^2.0",
"symfony/cache": "^5.3",
"symfony/http-kernel": "^5.3"
"symfony/cache": "^5.3|^6.2",
"symfony/http-kernel": "^5.3|^6.2"
},
"autoload": {
"psr-4": {
Expand Down
5 changes: 1 addition & 4 deletions src/Event/Collection/Basic.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,7 @@ public function find($index)
return $result;
}

/**
* @return int
*/
public function count()
public function count(): int
{
return count($this->events);
}
Expand Down