Skip to content

Bump to minimum PHP 7.3 and allow for PHP 8.0 #1158

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

Merged
merged 1 commit into from
Dec 11, 2020
Merged
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 .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
build:
environment:
php: 7.4.11
php: 7.3.0
nodes:
analysis:
tests:
Expand Down
16 changes: 7 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
dist: trusty
dist: bionic
language: php

addons:
mariadb: '10.1'
mariadb: 10.2

cache:
directories:
- vendor
- $HOME/.composer/cache

php:
- 7.4
- 7.3
- 7.2
- 7.4
- 8.0snapshot
- nightly
- hhvm

matrix:
jobs:
allow_failures:
- php: nightly
- php: hhvm
fast_finish: true

git:
Expand All @@ -38,10 +36,10 @@ before_script:
script:
- for SCHEMA_UPDATE_FILE in $(ls utils/db-schema-update); do mysql -u root -e "use telegrambot_migrations; source utils/db-schema-update/${SCHEMA_UPDATE_FILE};"; done;
- composer check-code
- if [ "$TRAVIS_PHP_VERSION" == "7.4" ]; then composer test-cov; else composer test; fi
- if [ "$TRAVIS_PHP_VERSION" == "7.3" ]; then composer test-cov; else composer test; fi

after_script:
- if [ "$TRAVIS_PHP_VERSION" == "7.4" ]; then composer test-cov-upload; fi
- if [ "$TRAVIS_PHP_VERSION" == "7.3" ]; then composer test-cov-upload; fi

notifications:
on_success: never
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
### Added
- Bot API 5.0 (Big update!).
### Changed
- Upgrade code to PHP 7.2. (#1136)
- Upgrade code to PHP 7.3. (#1136, )
- Speed up clean query (@dva-re) (#1139)
- Various code prettifications (@akalongman) (#1140, #1141, #1142, #1143)
### Deprecated
### Removed
### Fixed
### Security
- Minimum PHP 7.2. (#1136)
- Minimum PHP 7.3. (#1136, )

## [0.64.0] - 2020-10-04
### Notes
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ A Telegram Bot based on the official [Telegram Bot API]
[![Dependencies](https://tidelift.com/badges/github/php-telegram-bot/core?style=flat)][Tidelift]
[![Total Downloads](https://img.shields.io/packagist/dt/longman/telegram-bot.svg)](https://packagist.org/packages/longman/telegram-bot)
[![Downloads Month](https://img.shields.io/packagist/dm/longman/telegram-bot.svg)](https://packagist.org/packages/longman/telegram-bot)
[![Minimum PHP Version](http://img.shields.io/badge/php-%3E%3D7.2-8892BF.svg)](https://php.net/)
[![Minimum PHP Version](http://img.shields.io/badge/php-%3E%3D7.3-8892BF.svg)](https://php.net/)
[![License](https://img.shields.io/packagist/l/longman/telegram-bot.svg)](https://github.com/php-telegram-bot/core/LICENSE)

## Table of Contents
Expand Down
16 changes: 11 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,30 +16,36 @@
"homepage": "http://longman.me",
"role": "Developer"
},
{
"name": "Armando Lüscher",
"email": "[email protected]",
"homepage": "https://noplanman.ch",
"role": "Developer"
},
{
"name": "PHP Telegram Bot Team",
"homepage": "https://github.com/php-telegram-bot/core/graphs/contributors",
"role": "Developer"
}
],
"require": {
"php": "^7.2",
"php": "^7.3|^8.0",
"ext-pdo": "*",
"ext-curl": "*",
"ext-json": "*",
"ext-mbstring": "*",
"psr/log": "^1.1",
"guzzlehttp/guzzle": "^6.5|^7.1"
"guzzlehttp/guzzle": "^6.0|^7.0"
},
"require-dev": {
"phpunit/phpunit": "^8.5",
"phpunit/phpunit": "^9.4",
"squizlabs/php_codesniffer": "^3.5",
"dms/phpunit-arraysubset-asserts": "^0.1",
"dms/phpunit-arraysubset-asserts": "^0.2",
"monolog/monolog": "^2.1"
},
"autoload": {
"psr-4": {
"Longman\\TelegramBot\\": "src/"
"Longman\\TelegramBot\\": "src"
}
},
"autoload-dev": {
Expand Down
Loading