Skip to content

Commit 38efd6c

Browse files
MGatnerpaulbalandan
authored andcommitted
Update various references to 7.2
1 parent 89e7856 commit 38efd6c

11 files changed

Lines changed: 24 additions & 17 deletions

File tree

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ If you change anything that requires a change to documentation, then you will ne
4747

4848
### Compatibility
4949

50-
CodeIgniter4 requires [PHP 7.2](https://php.net/releases/7_2_0.php).
50+
CodeIgniter4 requires [PHP 7.3](https://php.net/releases/7_3_0.php).
5151

5252
### Branching
5353

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Please read the [*Contributing to CodeIgniter*](https://github.com/codeigniter4/
8181

8282
## Server Requirements
8383

84-
PHP version 7.2 or higher is required, with the following extensions installed:
84+
PHP version 7.3 or higher is required, with the following extensions installed:
8585

8686

8787
- [intl](http://php.net/manual/en/intl.requirements.php)

Vagrantfile.dist

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Vagrant.configure("2") do |config|
5050
PGSQL_ROOT_PASS="password"
5151
VIRTUALHOST="localhost"
5252
CODEIGNITER_PATH="/var/www/codeigniter"
53-
PHP_VERSION=7.2
53+
PHP_VERSION=7.3
5454
PGSQL_VERSION=10
5555
#APT_PROXY="192.168.10.1:3142"
5656
@@ -164,8 +164,8 @@ Vagrant.configure("2") do |config|
164164
sed -i "s/APACHE_RUN_USER=www-data/APACHE_RUN_USER=vagrant/" /etc/apache2/envvars
165165
sed -i "s/APACHE_RUN_GROUP=www-data/APACHE_RUN_GROUP=vagrant/" /etc/apache2/envvars
166166
grep -q "Listen 81" /etc/apache2/ports.conf || sed -i "s/^Listen 80/Listen 80\\nListen 81\\nListen 82/" /etc/apache2/ports.conf
167-
sed -i "s/^display_errors = Off/display_errors = On/" /etc/php/7.2/apache2/php.ini
168-
sed -i "s/^display_startup_errors = Off/display_startup_errors = On/" /etc/php/7.2/apache2/php.ini
167+
sed -i "s/^display_errors = Off/display_errors = On/" /etc/php/7.3/apache2/php.ini
168+
sed -i "s/^display_startup_errors = Off/display_startup_errors = On/" /etc/php/7.3/apache2/php.ini
169169
170170
echo "ServerName ${VIRTUALHOST}
171171
<Directory ${CODEIGNITER_PATH}>

admin/framework/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Please read the [*Contributing to CodeIgniter*](https://github.com/codeigniter4/
4343

4444
## Server Requirements
4545

46-
PHP version 7.2 or higher is required, with the following extensions installed:
46+
PHP version 7.3 or higher is required, with the following extensions installed:
4747

4848
- [intl](http://php.net/manual/en/intl.requirements.php)
4949
- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library

admin/starter/.github/workflows/phpunit.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
php-versions: ['7.2', '7.3', '7.4']
14+
php-versions: ['7.3', '7.4']
1515

1616
runs-on: ubuntu-latest
1717

@@ -22,7 +22,7 @@ jobs:
2222
uses: actions/checkout@v2
2323

2424
- name: Setup PHP, with composer and extensions
25-
uses: shivammathur/setup-php@master
25+
uses: shivammathur/setup-php@v2
2626
with:
2727
php-version: ${{ matrix.php-versions }}
2828
tools: composer, pecl, phpunit
@@ -34,14 +34,14 @@ jobs:
3434
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
3535

3636
- name: Cache composer dependencies
37-
uses: actions/cache@v1
37+
uses: actions/cache@v2
3838
with:
3939
path: ${{ steps.composer-cache.outputs.dir }}
40-
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }}
40+
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
4141
restore-keys: ${{ runner.os }}-composer-
4242

4343
- name: Install dependencies
44-
run: composer install --no-progress --no-suggest --no-interaction --prefer-dist --optimize-autoloader
44+
run: composer install --no-progress --no-interaction --prefer-dist --optimize-autoloader
4545
# To prevent rate limiting you may need to supply an OAuth token in Settings > Secrets
4646
# env:
4747
# https://getcomposer.org/doc/articles/troubleshooting.md#api-rate-limit-and-oauth-tokens

admin/starter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Problems with it can be raised on our forum, or as issues in the main repository
5050

5151
## Server Requirements
5252

53-
PHP version 7.2 or higher is required, with the following extensions installed:
53+
PHP version 7.3 or higher is required, with the following extensions installed:
5454

5555
- [intl](http://php.net/manual/en/intl.requirements.php)
5656
- [libcurl](http://php.net/manual/en/curl.requirements.php) if you plan to use the HTTP\CURLRequest library

admin/userguide/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"homepage": "https://codeigniter.com",
66
"license": "MIT",
77
"require": {
8-
"php": "^7.2 || ^8.0",
8+
"php": "^7.3||^8.0",
99
"codeigniter4/framework": "^4"
1010
},
1111
"support": {

system/Commands/Server/Serve.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@
2323
*/
2424
class Serve extends BaseCommand
2525
{
26+
/**
27+
* Minimum PHP version
28+
*
29+
* @var string
30+
*/
31+
protected $minPHPVersion = '7.3';
32+
2633
/**
2734
* Group
2835
*

user_guide_src/source/installation/running.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ configuration file, e.g., ``apache2/conf/httpd.conf``::
9393
Also make sure that the default document root's <Directory> element enables this too,
9494
in the "AllowOverride" setting::
9595

96-
<Directory "/opt/lamp7.2/apache2/htdocs">
96+
<Directory "/opt/lamp/apache2/htdocs">
9797
Options Indexes FollowSymLinks
9898
AllowOverride All
9999
Require all granted
@@ -120,7 +120,7 @@ Add a <VirtualHost> element for your webapp inside the virtual hosting configura
120120
e.g., ``apache2/conf/extra/httpd-vhost.conf``::
121121

122122
<VirtualHost *:80>
123-
DocumentRoot "/opt/lamp7.2/apache2/htdocs/myproject/public"
123+
DocumentRoot "/opt/lamp/apache2/htdocs/myproject/public"
124124
ServerName myproject.local
125125
ErrorLog "logs/myproject-error_log"
126126
CustomLog "logs/myproject-access_log" common

user_guide_src/source/installation/upgrade_4xx.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ subforum for an up-to-date list!
3030

3131
**Namespaces**
3232

33-
- CI4 is built for PHP7.2+, and everything in the framework is namespaced, except for the helpers.
33+
- CI4 is built for PHP7.3+, and everything in the framework is namespaced, except for the helpers.
3434

3535
**Application Structure**
3636

0 commit comments

Comments
 (0)