Skip to content

Commit 4d7b819

Browse files
authored
Merge pull request #16482 from phalcon/5.0.x
5.5.0
2 parents 37f5eb8 + 394b14c commit 4d7b819

File tree

699 files changed

+11636
-30134
lines changed

Some content is hidden

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

699 files changed

+11636
-30134
lines changed

.ci/install-zephir.sh

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/build-docker.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
fail-fast: false
1717
matrix:
18-
php: [ '7.4', '8.0', '8.1', '8.2' ]
18+
php: [ '8.0', '8.1', '8.2', '8.3' ]
1919

2020
name: Build Dockerfile PHP ${{ matrix.php }}
2121
steps:

.github/workflows/main.yml

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ on:
1919

2020
env:
2121
# All versions should be declared here
22-
PHALCON_VERSION: 5.4.0
23-
ZEPHIR_PARSER_VERSION: 1.5.3
24-
ZEPHIR_VERSION: 0.17.0
22+
PHALCON_VERSION: 5.5.0
23+
ZEPHIR_PARSER_VERSION: 1.6.0
2524

2625
# For tests
2726
LANG: en_US.UTF-8
@@ -49,8 +48,7 @@ jobs:
4948
- id: setup-zephir-ext
5049
name: Setup Zephir Extensions
5150
run: |
52-
echo "::set-output name=extensions::zephir_parser-${{ env.ZEPHIR_PARSER_VERSION }}"
53-
# echo "extensions=zephir_parser-${{ env.ZEPHIR_PARSER_VERSION }}" >> "$GITHUB_ENV" # Need to change the templates to use this
51+
echo "extensions=zephir_parser-${{ env.ZEPHIR_PARSER_VERSION }}" >> "$GITHUB_OUTPUT"
5452
5553
5654
# PHP CodeSniffer inspection
@@ -71,10 +69,10 @@ jobs:
7169

7270
generate:
7371
needs: setup_workflow
74-
uses: zephir-lang/templates/.github/workflows/phalcon-pecl.yml@main
72+
uses: zephir-lang/templates/.github/workflows/phalcon-pecl-zephir-composer.yml@main
7573
with:
7674
extensions: ${{ needs.setup_workflow.outputs.zephir_extensions }}
77-
php_version: '8.2'
75+
php_version: '8.3'
7876
secrets:
7977
composer-token: ${{ secrets.GITHUB_TOKEN }}
8078

@@ -88,7 +86,7 @@ jobs:
8886
strategy:
8987
fail-fast: false
9088
matrix:
91-
php: [ '7.4', '8.0', '8.1', '8.2' ]
89+
php: [ '8.0', '8.1', '8.2', '8.3' ]
9290
ts: [ 'nts', 'ts' ]
9391
arch: [ 'x64' ]
9492

@@ -104,12 +102,10 @@ jobs:
104102
# macOS
105103
- { name: macos-clang, os: macos-12, compiler: clang }
106104
# Windows
107-
- { php: '7.4', ts: 'ts', arch: 'x64', name: 'windows2019-vc15', os: 'windows-2019', compiler: 'vc15' }
108-
- { php: '7.4', ts: 'nts', arch: 'x64', name: 'windows2019-vc15', os: 'windows-2019', compiler: 'vc15' }
109105
- { php: '8.0', ts: 'ts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16' }
110106
- { php: '8.0', ts: 'nts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16' }
111-
- { php: '8.1', ts: 'ts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16' }
112-
- { php: '8.1', ts: 'nts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16' }
107+
#- { php: '8.1', ts: 'ts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16' }
108+
#- { php: '8.1', ts: 'nts', arch: 'x64', name: 'windows2019-vs16', os: 'windows-2019', compiler: 'vs16' }
113109
# Most of the extensions wasn't compiled for PHP 8.2.
114110
# So it is not possible to test in this version, inside Windows OS.
115111
# List of .dlls - https://windows.php.net/downloads/pecl/releases/
@@ -182,7 +178,7 @@ jobs:
182178
$PhalconExtPath = "$(php-config --extension-dir)/phalcon.so"
183179
}
184180
echo "::set-output name=extension-path::$PhalconExtPath"
185-
# echo "extension-path=$PhalconExtPath" >> "$GITHUB_ENV" # This needs to be checked, used below somehow
181+
# echo "extension-path=$PhalconExtPath" >> "$GITHUB_OUTPUT"
186182

187183
- name: Creates build artifact with Phalcon extension
188184
uses: ./.github/actions/pack-phalcon-ext
@@ -272,7 +268,7 @@ jobs:
272268
strategy:
273269
fail-fast: false
274270
matrix:
275-
php: [ '7.4', '8.0', '8.1', '8.2' ]
271+
php: [ '8.0', '8.1', '8.2', '8.3' ]
276272

277273
steps:
278274
- uses: actions/checkout@v3
@@ -309,7 +305,7 @@ jobs:
309305
run: composer validate --no-check-all --no-check-publish
310306

311307
- name: "Install development dependencies with Composer"
312-
uses: "ramsey/composer-install@v2"
308+
uses: ramsey/composer-install@v2
313309
with:
314310
composer-options: "--prefer-dist"
315311

BACKERS.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,11 @@ Thanks for the support
105105
<a href="https://github.com/SliceOfLife"><img src="https://avatars.githubusercontent.com/u/3955618?v=4" title="SliceOfLife" width="60" height="60"></a>
106106
<a href="https://github.com/f-do"><img src="https://avatars.githubusercontent.com/u/4299065?v=4" title="Florian" width="60" height="60"></a>
107107
<a href="https://github.com/borisdelev"><img src="https://avatars.githubusercontent.com/u/4441663?s=460&u=be604c39153e26326f2123c6e1bfe880d5ec0947&v=4" title="Boris Delev" width="60" height="60"></a>
108-
<a href="https://github.com/stdnk"><img src="https://avatars.githubusercontent.com/u/5130969?v=4" title="Vasily Stadnik" width="60" height="60"></a>
109108
<a href="https://github.com/emagus"><img src="https://avatars.githubusercontent.com/u/5857789?v=4" title="maGus Informática" width="60" height="60"></a>
110109
<a href="https://github.com/tztztztz"><img src="https://avatars.githubusercontent.com/u/7032308?v=4" title="Tomasz Zadora" width="60" height="60"></a>
111110
<a href="https://github.com/sitchi"><img src="https://avatars.githubusercontent.com/u/11546683?v=4" title="Nikoloz Sitchinava" width="60" height="60"></a>
112111
<a href="https://github.com/6trading"><img src="https://avatars.githubusercontent.com/u/12135941?v=4" title="Chris" width="60" height="60"></a>
113112
<a href="https://github.com/fvromera"><img src="https://avatars.githubusercontent.com/u/32909196?s=460&u=a4a6d765c836be52ab247354399d0ed1a49224fa&v=4" title="fvromera" width="60" height="60"></a>
114-
<a href="https://github.com/elstin"><img src="https://avatars0.githubusercontent.com/u/38716832?s=460&v=4" title="Akira Kato" width="60" height="60"></a>
115113
<a href="https://github.com/dredasss"><img src="https://avatars1.githubusercontent.com/u/38747389?s=460&u=ee99a8bb28ee6bedbbea6325d49d4eb99080d421&v=4" title="Nerijus Alex" width="60" height="60"></a>
116114
<a href="https://github.com/housesigma"><img src="https://avatars.githubusercontent.com/u/50630040?s=200&v=4" title="HouseSigma" width="60" height="60"></a>
117115
<a href="https://github.com/markofo"><img src="https://avatars.githubusercontent.com/u/59839390?v=4" title="markofo" width="60" height="60"></a>

CHANGELOG-5.0.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# Changelog
22

3+
## [5.5.0](https://github.com/phalcon/cphalcon/releases/tag/v5.5.0) (2023-12-25)
4+
5+
### Changed
6+
7+
- Shifted minimal support from PHP 7.4 to PHP 8.0 [#16477](https://github.com/phalcon/cphalcon/issues/16477)
8+
- Changed `Phalcon\Mvc\Model::toArray` to use getters if present [#16320](https://github.com/phalcon/cphalcon/issues/16320)
9+
- Adjusted return types identical to original interface `int|false` in `Phalcon\Session\Adapter\*::gc()` [#16477](https://github.com/phalcon/cphalcon/issues/16477)
10+
- Changed return type of `Phalcon\Config\Adapter\Ini::cast()` to `mixed` [#16477](https://github.com/phalcon/cphalcon/issues/16477)
11+
12+
### Added
13+
14+
- Added support for PHP 8.3 [#16477](https://github.com/phalcon/cphalcon/issues/16477)
15+
16+
### Fixed
17+
18+
- Fixed `Phalcon\Filter\Validation\Validator\Numericality` to return false when input has spaces [#16461](https://github.com/phalcon/cphalcon/issues/16461)
19+
- Fixed `Phalcon\Mvc\Model\ResultsetSimple::toArray` to ignore numeric indexes in case results come as not `fetch_assoc` [#16467](https://github.com/phalcon/cphalcon/issues/16467)
20+
21+
### Removed
22+
323
## [5.4.0](https://github.com/phalcon/cphalcon/releases/tag/v5.4.0) (2023-10-25)
424

525
### Changed

composer.json

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
}
2222
],
2323
"require": {
24-
"php": ">=7.4"
24+
"php": ">=8.0"
2525
},
2626
"require-dev": {
2727
"ext-apcu": "*",
@@ -50,13 +50,13 @@
5050
"codeception/module-redis": "^1.0.0",
5151
"friendsofphp/php-cs-fixer": "~3.0",
5252
"mustache/mustache": "^2.14.1",
53-
"phalcon/ide-stubs": "^4.1",
54-
"phalcon/zephir": "^0.17",
53+
"phalcon/ide-stubs": "^5.4",
54+
"phalcon/zephir": "dev-development",
5555
"phpunit/phpunit": "^9.0",
5656
"predis/predis": "^1.1",
5757
"squizlabs/php_codesniffer": "^3.4",
5858
"twig/twig": "~1.36",
59-
"vimeo/psalm": "^4.7",
59+
"vimeo/psalm": "^5.18",
6060
"vlucas/phpdotenv": "^v5.4"
6161
},
6262
"config": {
@@ -89,5 +89,19 @@
8989
"source": "https://github.com/phalcon/cphalcon",
9090
"docs": "https://phalcon.io/docs/",
9191
"rss": "https://blog.phalcon.io/rss"
92+
},
93+
"scripts": {
94+
"cs": "php -d extension=ext/modules/phalcon.so ./vendor/bin/phpcs --standard=phpcs.xml",
95+
"cs-fix": "php -d extension=ext/modules/phalcon.so ./vendor/bin/phpcbf --standard=phpcs.xml",
96+
"test-unit": "php -d extension=ext/modules/phalcon.so ./vendor/bin/codecept run --ext DotReporter unit",
97+
"test-cli": "php -d extension=ext/modules/phalcon.so ./vendor/bin/codecept run --ext DotReporter cli",
98+
"test-integration": "php -d extension=ext/modules/phalcon.so ./vendor/bin/codecept run --ext DotReporter integration",
99+
"test-db-common": "php -d extension=ext/modules/phalcon.so ./vendor/bin/codecept run --ext DotReporter database -g common",
100+
"test-db-mysql": "php -d extension=ext/modules/phalcon.so ./vendor/bin/codecept run --ext DotReporter database --env mysql -g mysql",
101+
"test-db-pgsql": "php -d extension=ext/modules/phalcon.so ./vendor/bin/codecept run --ext DotReporter database --env pgsql -g pgsql",
102+
"test-db-sqlite": "php -d extension=ext/modules/phalcon.so ./vendor/bin/codecept run --ext DotReporter database --env sqlite -g sqlite",
103+
"test-db": "composer test-db-common && composer test-db-mysql && composer test-db-sqlite",
104+
"test-all": "composer test-unit && composer test-cli && composer test-integration && composer test-db",
105+
"analyze": "php -d extension=ext/modules/phalcon.so ./vendor/bin/psalm"
92106
}
93107
}

0 commit comments

Comments
 (0)