Skip to content

Commit 2e16ea6

Browse files
Upgrade for Phalcon V5 and PHP 8 (#1535)
* Add Support for Phalcon V5 and PHP 8 * Upgrade phalcon/ide-stubs (^4.0.0 => ^5.0.0) * Upgrade Tests Github Action to Phalcon v5 * PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter * Upgrade squizlabs/php_codesniffer * generate composer.lock from PHP 7.4 * Upgrade Phalcon 5 namespace Phalcon\Logger\Logger * Upgrade Phalcon 5 - Webtools Phalcon\Tag to Phalcon\Html\TagFactory * Upgrade Phalcon 5 - Webtools Scaffold - Phalcon\Tag to Phalcon\Html\TagFactory * Scaffold corrected Line exceeds 120 characters * Upgrade Phalcon\Logger\Logger in Test * Upgrade Phalcon\Autoload\Loader registerNamespaces() has been renamed to setNamespaces() in Tests * Fixed Id Controls from Migrations Generate Form * Fixing Generate Migrations Webtools * Update composer.json to Phpunit 9 * Release v5.0.0
1 parent e3f1aeb commit 2e16ea6

File tree

107 files changed

+3941
-3933
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+3941
-3933
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99

1010
env:
11-
extensions: mbstring, intl, json, zip, phalcon-4.0.5, mysql, pgsql, xdebug-2.9.8
11+
extensions: mbstring, intl, json, zip, phalcon-5.2.0, mysql, pgsql, xdebug-2.9.8
1212
key: cache-v2.0~19.03.2020
1313

1414
services:
@@ -32,7 +32,7 @@ jobs:
3232
strategy:
3333
fail-fast: false
3434
matrix:
35-
php-versions: [ '7.2', '7.3', '7.4' ]
35+
php-versions: [ '7.4', '8.0', '8.1', '8.2' ]
3636
steps:
3737
- uses: actions/checkout@v1
3838

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ with Phalcon framework.
2121

2222
## Requirements
2323

24-
* PHP >= 7.2
25-
* Phalcon >= 4.0.0
24+
* PHP >= 7.4.1
25+
* Phalcon >= 5.0.0
2626

2727
## Installing via Composer
2828

@@ -37,17 +37,17 @@ Create the composer.json file as follows:
3737
```json
3838
{
3939
"require-dev": {
40-
"phalcon/devtools": "~4.1"
40+
"phalcon/devtools": "~5.0"
4141
}
4242
}
4343
```
4444

45-
If you are still using Phalcon 3.4.x, create a `composer.json` with the following instead:
45+
If you are still using Phalcon 4.2.x, create a `composer.json` with the following instead:
4646

4747
```json
4848
{
4949
"require-dev": {
50-
"phalcon/devtools": "^3.4"
50+
"phalcon/devtools": "^4.2"
5151
}
5252
}
5353
```
@@ -116,7 +116,7 @@ This command should display something similar to:
116116
```sh
117117
$ phalcon --help
118118

119-
Phalcon DevTools (4.1.0)
119+
Phalcon DevTools (5.0.0)
120120

121121
Help:
122122
Lists the commands available in Phalcon DevTools

composer.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,23 +22,23 @@
2222
"forum": "https://forum.phalcon.io"
2323
},
2424
"require": {
25-
"php": ">=7.2",
25+
"php": ">=7.4.1",
2626
"ext-pdo": "*",
27-
"ext-phalcon": "^4.0.0",
27+
"ext-phalcon": "^5.0.0",
2828
"psy/psysh": "~0.9",
2929
"nikic/php-parser": "^4.2.4",
30-
"phalcon/migrations": "^2.0",
30+
"phalcon/migrations": "^3.0",
3131
"vlucas/phpdotenv": "^3.6|^4.0|^5.0"
3232
},
3333
"require-dev": {
34-
"humbug/box": "^3.8",
34+
"humbug/box": "^3.11",
3535
"codeception/codeception": "^4.1",
36-
"phpdocumentor/reflection-docblock": "^4.3",
37-
"phpunit/phpunit": "^8.0",
36+
"phpdocumentor/reflection-docblock": "^5.2",
37+
"phpunit/phpunit": "^9.0",
3838
"codeception/specify": "^1.2",
3939
"codeception/verify": "^1.2",
40-
"squizlabs/php_codesniffer": "^3.5",
41-
"phalcon/ide-stubs": "^4.0.0",
40+
"squizlabs/php_codesniffer": "^3.7",
41+
"phalcon/ide-stubs": "^5.0.0",
4242
"vimeo/psalm": "^4.6",
4343
"codeception/module-phpbrowser": "^1.0",
4444
"codeception/module-filesystem": "^1.0",

0 commit comments

Comments
 (0)