Skip to content

Commit 9d2d864

Browse files
authored
Merge pull request #16112 from phalcon/5.0.x
5.0.0 Stable
2 parents c8dbac5 + c084949 commit 9d2d864

File tree

458 files changed

+14696
-12943
lines changed

Some content is hidden

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

458 files changed

+14696
-12943
lines changed

.github/workflows/build-docker.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
paths:
66
- 'docker/**'
77

8+
permissions:
9+
contents: read # to fetch code (actions/checkout)
10+
811
jobs:
912
build:
1013
runs-on: ubuntu-20.04

.github/workflows/main.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ on:
1919

2020
env:
2121
# All versions should be declared here
22-
PHALCON_VERSION: 5.0.0RC4
23-
ZEPHIR_PARSER_VERSION: 1.5.0
24-
ZEPHIR_VERSION: 0.16.0
22+
PHALCON_VERSION: 5.0.0
23+
ZEPHIR_PARSER_VERSION: 1.5.1
24+
ZEPHIR_VERSION: 0.16.3
2525

2626
# For tests
2727
LANG: en_US.UTF-8
@@ -34,6 +34,7 @@ env:
3434
# PHP extensions required by Composer
3535
EXTENSIONS: apcu, gettext, gd, igbinary, imagick, intl, json, mbstring, msgpack, memcached, sqlite3, yaml, redis, :memcache
3636

37+
permissions: {}
3738
jobs:
3839
# Configure Workflow for correct run reusable workflow
3940
# This is required step. It's workaround for non-initialized ENVs when trying to pass input variables from ENVs.
@@ -52,6 +53,9 @@ jobs:
5253
5354
# PHP CodeSniffer inspection
5455
phpcs:
56+
permissions:
57+
contents: read
58+
5559
uses: zephir-lang/templates/.github/workflows/phpcs.yml@main
5660
with:
5761
standard: ./phpcs.xml
@@ -72,6 +76,9 @@ jobs:
7276
composer-token: ${{ secrets.GITHUB_TOKEN }}
7377

7478
build-and-test:
79+
permissions:
80+
contents: read # to fetch code (actions/checkout)
81+
7582
name: tests / PHP-${{ matrix.php }}-${{ matrix.ts }}-${{ matrix.name }}-${{ matrix.arch }}
7683
needs: [generate]
7784
runs-on: ${{ matrix.os }}
@@ -223,6 +230,9 @@ jobs:
223230
extensions: ${{ needs.setup_workflow.outputs.zephir_extensions }}
224231

225232
integration-test:
233+
permissions:
234+
contents: read # to fetch code (actions/checkout)
235+
226236
needs: [generate]
227237
runs-on: ubuntu-20.04
228238

@@ -368,6 +378,9 @@ jobs:
368378
# run: vendor/bin/codecept run --ext DotReporter database --env sqlsrv
369379

370380
release:
381+
permissions:
382+
contents: write # to create a release (ncipollo/release-action)
383+
371384
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
372385

373386
needs: [generate, install, build-and-test, integration-test]

BACKERS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,14 @@ Thanks for the support
112112
<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>
113113
<a href="https://github.com/tztztztz"><img src="https://avatars.githubusercontent.com/u/7032308?v=4" title="Tomasz Zadora" width="60" height="60"></a>
114114
<a href="https://github.com/ruudboon"><img src="https://avatars3.githubusercontent.com/u/7444246?s=460&v=4" title="Ruud Boon" width="60" height="60"></a>
115-
<a href="https://github.com/tacxticx88"><img src="https://avatars3.githubusercontent.com/u/12997062?s=460&u=5af0fbe438391ac46fb19befe0c20a4b1374e187&v=4" title="Clément" width="60" height="60"></a>
116115
<a href="https://github.com/Montana"><img src="https://avatars3.githubusercontent.com/u/20936398?s=460&v=4" title="Montana Mendy" width="60" height="60"></a>
117116
<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>
118117
<a href="https://github.com/ak1113"><img src="https://avatars0.githubusercontent.com/u/38716832?s=460&v=4" title="Akira Kato" width="60" height="60"></a>
119118
<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>
120119
<a href="https://github.com/postype"><img src="https://avatars.githubusercontent.com/u/54393235?s=200&v=4" title="https://www.postype.com/" width="60" height="60"></a>
121120
<a href="https://github.com/RaulRaf95"><img src="https://avatars.githubusercontent.com/u/63474503?v=4" title="RaulRaf95" width="60" height="60"></a>
122121
<a href="https://github.com/iogates"><img src="https://avatars.githubusercontent.com/u/86652317?s=200&v=4" title="iogates" width="60" height="60"></a>
122+
<a href="https://github.com/super-dmitriy"><img src="https://avatars.githubusercontent.com/u/5605919?v=4" title="Dmitriy" width="60" height="60"></a>
123123

124124
[//]: github-sponsors
125125

CHANGELOG-5.0.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
# [5.0.0](https://github.com/phalcon/cphalcon/releases/tag/v5.0.0) (2022-09-22)
2+
3+
## Changed
4+
- Changed `Phalcon\Logger\Adapter\Stream::process` to open the log file, check for locks, write contents and close the stream [#16072](https://github.com/phalcon/cphalcon/issues/16072)
5+
- Changed getters and setters from shorthand format to full methods [#16102](https://github.com/phalcon/cphalcon/issues/16102)
6+
- Changed return types to `array` in `Phalcon\Annotations\Reflection` class methods [#16106](https://github.com/phalcon/cphalcon/issues/16106)
7+
- Changed `Phalcon\Html\Escaper::attributes()` to also accept an array of attributes [#16108](https://github.com/phalcon/cphalcon/issues/16108)
8+
9+
## Fixed
10+
- Fixed and improved return type of `object` & `?object` [#16023](https://github.com/phalcon/cphalcon/issues/16023)
11+
- Fixed `Phalcon\Filter\Validation\Validator\Digit` to use only strings for `ctype_*` calls [#16064](https://github.com/phalcon/cphalcon/issues/16064)
12+
- Fixed `Phalcon\Flash\AbstractFlash::outputMessage` to return the message (implicitFlush) [#16063](https://github.com/phalcon/cphalcon/issues/16063)
13+
- Fixed `Phalcon\Filter\Validation\Validator\Numericality` to correctly detect illegal characters within string numbers [#16070](https://github.com/phalcon/cphalcon/issues/16070)
14+
- Fixed segmentation fault on Reflection of `Phalcon\Mvc\Model` class [#16080](https://github.com/phalcon/cphalcon/issues/16080)
15+
- Fixed segmentation fault on Reflection [#16096](https://github.com/phalcon/cphalcon/issues/16096)
16+
17+
## Added
18+
- Added `Phalcon\Encryption\Security\JWT\Token::validate()` to validate a token's claims [#16094](https://github.com/phalcon/cphalcon/issues/16094)
19+
- Added `Phalcon\Encryption\Security\JWT\Token::verify()` to verify a token's signature [#16094](https://github.com/phalcon/cphalcon/issues/16094)
20+
- Added `Phalcon\Encryption\Security\JWT\Validator::getErrors()` to return any errors with the validation as an array [#16094](https://github.com/phalcon/cphalcon/issues/16094)
21+
122
# [5.0.0rc4](https://github.com/phalcon/cphalcon/releases/tag/v5.0.0RC4) (2022-08-08)
223

324
## Fixed

CODE_OWNERS.TXT

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,13 @@ beautification by scripts. The fields are: name (N), email (E), web-address
1111
The sample of querying command to search PECL keyword:
1212
awk -v RS='' -v ORS='\n\n' '/\nD: .*PECL/' CODE_OWNERS.TXT
1313

14-
N: Ruud Boon
15-
16-
W: https://ruudboon.io
17-
P: 0xF2E9F914DFA1BCD7
18-
D: PECL and all parts of Phalcon not covered by someone else
14+
N: Anton Vasiliev
15+
16+
P:
17+
D: PECL, CI/CD Integration, Zephir support, Parsers and Scanners, Volt, Annotation, PHQL support
1918

2019
N: Nikolaos Dimopoulos
2120
2221
W: https://niden.net
2322
P: 0x93F8CA07B9C8C41D
2423
D: All parts of Phalcon not covered by someone else excluding PECL
25-
26-
N: Serghei Iakovlev
27-
28-
W: https://serghei.blog
29-
P: 0x1E0B5331219BEA88
30-
D: CI/CD Integration, Zephir support, Parsers and Scanners, Volt, Annotation, PHQL support

0 commit comments

Comments
 (0)