Skip to content

Commit

Permalink
Upgrade for Phalcon V5 and PHP 8 (#1535)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
escribiendocodigo committed Aug 29, 2023
1 parent e3f1aeb commit 2e16ea6
Show file tree
Hide file tree
Showing 107 changed files with 3,941 additions and 3,933 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest

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

services:
Expand All @@ -32,7 +32,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php-versions: [ '7.2', '7.3', '7.4' ]
php-versions: [ '7.4', '8.0', '8.1', '8.2' ]
steps:
- uses: actions/checkout@v1

Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ with Phalcon framework.

## Requirements

* PHP >= 7.2
* Phalcon >= 4.0.0
* PHP >= 7.4.1
* Phalcon >= 5.0.0

## Installing via Composer

Expand All @@ -37,17 +37,17 @@ Create the composer.json file as follows:
```json
{
"require-dev": {
"phalcon/devtools": "~4.1"
"phalcon/devtools": "~5.0"
}
}
```

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

```json
{
"require-dev": {
"phalcon/devtools": "^3.4"
"phalcon/devtools": "^4.2"
}
}
```
Expand Down Expand Up @@ -116,7 +116,7 @@ This command should display something similar to:
```sh
$ phalcon --help

Phalcon DevTools (4.1.0)
Phalcon DevTools (5.0.0)

Help:
Lists the commands available in Phalcon DevTools
Expand Down
16 changes: 8 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@
"forum": "https://forum.phalcon.io"
},
"require": {
"php": ">=7.2",
"php": ">=7.4.1",
"ext-pdo": "*",
"ext-phalcon": "^4.0.0",
"ext-phalcon": "^5.0.0",
"psy/psysh": "~0.9",
"nikic/php-parser": "^4.2.4",
"phalcon/migrations": "^2.0",
"phalcon/migrations": "^3.0",
"vlucas/phpdotenv": "^3.6|^4.0|^5.0"
},
"require-dev": {
"humbug/box": "^3.8",
"humbug/box": "^3.11",
"codeception/codeception": "^4.1",
"phpdocumentor/reflection-docblock": "^4.3",
"phpunit/phpunit": "^8.0",
"phpdocumentor/reflection-docblock": "^5.2",
"phpunit/phpunit": "^9.0",
"codeception/specify": "^1.2",
"codeception/verify": "^1.2",
"squizlabs/php_codesniffer": "^3.5",
"phalcon/ide-stubs": "^4.0.0",
"squizlabs/php_codesniffer": "^3.7",
"phalcon/ide-stubs": "^5.0.0",
"vimeo/psalm": "^4.6",
"codeception/module-phpbrowser": "^1.0",
"codeception/module-filesystem": "^1.0",
Expand Down

0 comments on commit 2e16ea6

Please sign in to comment.