Skip to content

Commit f95083f

Browse files
committed
Upgrade to php 8.1
1 parent 48e0e42 commit f95083f

File tree

13 files changed

+403
-555
lines changed

13 files changed

+403
-555
lines changed

.github/workflows/build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ jobs:
1111
steps:
1212
- name: Setup node
1313
run: curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash - && sudo apt-get install -y nodejs
14-
- name: Setup php 7.4
14+
- name: Setup php 8.1
1515
uses: shivammathur/setup-php@v2
1616
with:
17-
php-version: '7.4'
17+
php-version: '8.1'
1818
extensions: curl, gd, intl, json, mbstring, readline, xml, zip
1919
- name: Setup yarn
2020
run: |

.travis.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@ cache:
1111
- node_modules
1212

1313
php:
14-
- 7.4
15-
- 8.0
1614
- 8.1
1715

1816
services:

Resources/doc/01-installation-dev.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ Add nginx repos:
3939
Install nginx via ``sudo apt-get update && sudo apt-get install -y nginx``
4040

4141

42-
Install PHP 7.4
42+
Install PHP 8.1
4343
~~~~~~~~~~~~~~~
44-
Add repository for php 7.4:
44+
Add repository for php 8.1:
4545

4646
::
4747

@@ -50,21 +50,21 @@ Add repository for php 7.4:
5050
sudo sh -c 'echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list'
5151

5252

53-
Install required php modules ``sudo apt-get update && sudo apt-get install -y php7.4 php7.4-cli php7.4-intl php7.4-xdebug php7.4-mysqlnd php7.4-xml php7.4-mbstring php7.4-zip php7.4-fpm php7.4-curl`` Create and enable ``common.ini``:
53+
Install required php modules ``sudo apt-get update && sudo apt-get install -y php8.1 php8.1-cli php8.1-intl php8.1-xdebug php8.1-mysqlnd php8.1-xml php8.1-mbstring php8.1-zip php8.1-fpm php8.1-curl`` Create and enable ``common.ini``:
5454

5555
::
5656

57-
echo "; priority=99" | sudo tee /etc/php/7.4/mods-available/common.ini > /dev/null
58-
echo "date.timezone=Europe/Minsk" | sudo tee -a /etc/php/7.4/mods-available/common.ini > /dev/null
59-
echo "short_open_tag=0" | sudo tee -a /etc/php/7.4/mods-available/common.ini > /dev/null
60-
echo "xdebug.max_nesting_level=250" | sudo tee -a /etc/php/7.4/mods-available/xdebug.ini > /dev/null
61-
echo "xdebug.var_display_max_depth=5" | sudo tee -a /etc/php/7.4/mods-available/xdebug.ini > /dev/null
57+
echo "; priority=99" | sudo tee /etc/php/8.1/mods-available/common.ini > /dev/null
58+
echo "date.timezone=Europe/Minsk" | sudo tee -a /etc/php/8.1/mods-available/common.ini > /dev/null
59+
echo "short_open_tag=0" | sudo tee -a /etc/php/8.1/mods-available/common.ini > /dev/null
60+
echo "xdebug.max_nesting_level=250" | sudo tee -a /etc/php/8.1/mods-available/xdebug.ini > /dev/null
61+
echo "xdebug.var_display_max_depth=5" | sudo tee -a /etc/php/8.1/mods-available/xdebug.ini > /dev/null
6262
sudo phpenmod common
6363

6464

65-
Open php fpm config file ``sudo mcedit /etc/php/7.4/fpm/pool.d/www.conf``, find ``listen = /run/php/php7.4-fpm.sock`` and replace with ``listen = 127.0.0.1:9000``.
65+
Open php fpm config file ``sudo mcedit /etc/php/8.1/fpm/pool.d/www.conf``, find ``listen = /run/php/php8.1-fpm.sock`` and replace with ``listen = 127.0.0.1:9000``.
6666

67-
Restart ``php-fpm`` using command ``sudo service php7.4-fpm restart``.
67+
Restart ``php-fpm`` using command ``sudo service php8.1-fpm restart``.
6868

6969

7070
Install node.js and Yarn

Resources/doc/todo.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ Things to do
22
============
33

44
- Add tasks to build to execute tests, when they are appears
5-
- Upgrade ``squizlabs/php_codesniffer`` to version 3 after releasing stable phing version 3

bin/deploy-to-prod.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/usr/bin/env sh
2-
# We should deploy only build for php 7.4
3-
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ $(phpenv version-name) = "7.4" ]; then
2+
# We should deploy only build for php 8.1
3+
if [ "${TRAVIS_PULL_REQUEST}" = "false" ] && [ $(phpenv version-name) = "8.1" ]; then
44
eval "$(ssh-agent -s)"
55
chmod 600 .travis/deploy.key
66
ssh-add .travis/deploy.key

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
}
2121
],
2222
"require": {
23-
"php": "^7.4.0|^8.0",
23+
"php": "^8.1",
2424
"ext-ctype": "*",
2525
"ext-iconv": "*",
2626
"ext-pdo": "*",
@@ -31,7 +31,7 @@
3131
"doctrine/doctrine-bundle": "^2.7",
3232
"doctrine/doctrine-migrations-bundle": "^3.2",
3333
"doctrine/orm": "^2.12",
34-
"easycorp/easyadmin-bundle": "^3.1.3",
34+
"easycorp/easyadmin-bundle": "^4.3.4",
3535
"friendsofsymfony/user-bundle": "^3.0",
3636
"owenversteeg/min": "dev-gh-pages#fe73afc9e1a0ae3492ad3af2efeb0f4d47f967cc",
3737
"pear/archive_tar": "1.4.*",

0 commit comments

Comments
 (0)