Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

4.0.2 #1448

Merged
merged 204 commits into from
Apr 11, 2020
Merged

4.0.2 #1448

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
204 commits
Select commit Hold shift + click to select a range
128abaf
#1417 - Swap include order of services.php and router.php
Jeckerson Jan 19, 2020
1704b94
Merge pull request #1419 from phalcon/fix/#1417-swap-includes
Jeckerson Jan 19, 2020
33eb1f6
#1421 - Remove build/BuildPharDockerfile and Makefile
Jeckerson Jan 20, 2020
5807cbb
Merge pull request #1422 from phalcon/feature/#1421-remove-dockerfile…
Jeckerson Jan 20, 2020
e19c8e0
Fix model command to work with PdoFactory
terax6669 Mar 21, 2020
def3146
Tabs to spaces
terax6669 Mar 21, 2020
39c42bb
Merge pull request #1432 from terax6669/fix_database_connection
Jeckerson Mar 21, 2020
c9d3a3a
fix: cast getCode to int - resolve trouble with psalm
jenovateurs Mar 28, 2020
3a33f73
fix:#1429 - Trouble with Scaffold - Phalcon V4
jenovateurs Mar 28, 2020
be724fc
remove the cast
jenovateurs Mar 28, 2020
cb5eeaf
fix error Argument 2 of BuilderException expects int|string provided …
jenovateurs Mar 28, 2020
e7b3d55
fix: Ignored error #Result of || is always true# has an unescaped '||…
jenovateurs Mar 28, 2020
7fdef5c
fix: All 17 errors from phpstan.
jenovateurs Mar 28, 2020
01f1200
fix: integration tests
jenovateurs Mar 28, 2020
7667534
fix: All 7 errors from phpstan about undefined method getShared
jenovateurs Mar 28, 2020
40e8e99
Merge pull request #1436 from les-enovateurs/fix_error
Jeckerson Mar 28, 2020
b9a6ec2
fix: added cli/launcher.bat and add changelog #1440
jenovateurs Apr 1, 2020
0d2dfb2
Merge pull request #1441 from les-enovateurs/update_cli_directory
jenovateurs Apr 2, 2020
139c456
test: add first GitHub Action brick
jenovateurs Apr 2, 2020
65b56fc
test: update tests.yml
jenovateurs Apr 2, 2020
e5e95d3
test: update tests.yml
jenovateurs Apr 2, 2020
4b71250
test: add first GitHub Action brick
jenovateurs Apr 2, 2020
83d4561
test: update tests.yml
jenovateurs Apr 2, 2020
bab2684
test: update tests.yml
jenovateurs Apr 2, 2020
adc693a
test: update tests.yml
jenovateurs Apr 2, 2020
3e38a52
test: update tests.yml
jenovateurs Apr 2, 2020
95105d6
fix: solve errors in tests.yml
jenovateurs Apr 2, 2020
2e56193
test: update tests.yml
jenovateurs Apr 2, 2020
f13e391
test: update tests.yml
jenovateurs Apr 2, 2020
7d55d97
test: update tests.yml
jenovateurs Apr 2, 2020
74da6d4
test: update tests.yml
jenovateurs Apr 2, 2020
cec61cc
test: update tests.yml
jenovateurs Apr 2, 2020
c8bbe75
test: update tests.yml
jenovateurs Apr 2, 2020
dc437b0
test: add first GitHub Action brick
jenovateurs Apr 2, 2020
ae61d21
test: update tests.yml
jenovateurs Apr 2, 2020
812c3ea
test: add first GitHub Action brick
jenovateurs Apr 2, 2020
fa90f0a
test: update tests.yml
jenovateurs Apr 2, 2020
7ed98bd
test: update tests.yml
jenovateurs Apr 2, 2020
582aca8
test: update tests.yml
jenovateurs Apr 2, 2020
8010b0a
test: update tests.yml
jenovateurs Apr 2, 2020
7a2f0e1
test: update tests.yml
jenovateurs Apr 2, 2020
fd0835f
test: update tests.yml
jenovateurs Apr 2, 2020
27db08e
debug: database dump
jenovateurs Apr 2, 2020
6298b71
debug: database dump
jenovateurs Apr 2, 2020
5b8d9a2
fix: error init db
jenovateurs Apr 2, 2020
95a5ff4
fix: error init db
jenovateurs Apr 2, 2020
13386d0
fix: error init db
jenovateurs Apr 2, 2020
b6582d6
fix: error init db
jenovateurs Apr 2, 2020
d6e00f7
fix: error init db mysql
jenovateurs Apr 2, 2020
d21365c
fix: error init db mysql
jenovateurs Apr 2, 2020
735297c
feat: move acceptance to mysql
jenovateurs Apr 2, 2020
7488aed
feat:create two separate test for mysql and pgsql
jenovateurs Apr 2, 2020
f131144
fix: force the mysql config setup
jenovateurs Apr 2, 2020
743f859
fix: force the mysql config setup
jenovateurs Apr 2, 2020
ee38630
fix: force the mysql config setup
jenovateurs Apr 2, 2020
a9d34f1
fix: include new phalcon config
jenovateurs Apr 2, 2020
52fc493
fix: include new phalcon config
jenovateurs Apr 2, 2020
cebbe2c
fix: force the mysql config setup
jenovateurs Apr 2, 2020
957c8a4
fix: force the mysql config setup
jenovateurs Apr 2, 2020
cb7faf0
fix: force the mysql config setup
jenovateurs Apr 2, 2020
ceb43ee
fix: revert acceptance and create two db postgres and mysql in accept…
jenovateurs Apr 2, 2020
46be024
fix: revert acceptance and create two db postgres and mysql in accept…
jenovateurs Apr 2, 2020
2401703
fix: revert acceptance and create two db postgres and mysql in accept…
jenovateurs Apr 2, 2020
9e3f298
feat: add group
jenovateurs Apr 2, 2020
130e600
feat: add group
jenovateurs Apr 2, 2020
98cf1f6
feat: add group
jenovateurs Apr 2, 2020
557482e
feat: add group
jenovateurs Apr 2, 2020
2510f67
feat: add group
jenovateurs Apr 2, 2020
ef307ce
fix: cleanup some code
jenovateurs Apr 2, 2020
f5a90ba
fix: hope fix some issue with test
jenovateurs Apr 3, 2020
9565e50
fix: hope fix some issue with test
jenovateurs Apr 3, 2020
d300411
fix: hope fix some issue with test
jenovateurs Apr 3, 2020
2d650d8
fix: hope fix some issue with test
jenovateurs Apr 3, 2020
19f8a84
fix: hope fix some issue with test
jenovateurs Apr 3, 2020
de0f4e0
fix: try debug with scandir
jenovateurs Apr 3, 2020
d441542
fix: try debug with scandir
jenovateurs Apr 3, 2020
902f05f
fix: try debug with scandir
jenovateurs Apr 3, 2020
4085989
fix: try debug with scandir
jenovateurs Apr 3, 2020
dbff387
fix: env to getenv
jenovateurs Apr 3, 2020
5a9d01a
fix: add log and artefact
jenovateurs Apr 3, 2020
057e8d0
fix: add log and artefact
jenovateurs Apr 3, 2020
8652ea4
fix: update path artifact error
jenovateurs Apr 3, 2020
9952b32
fix: try debug
jenovateurs Apr 3, 2020
31e893a
fix: try debug
jenovateurs Apr 3, 2020
8932cd5
fix: try debug db conexion
jenovateurs Apr 3, 2020
1b0aa99
fix: try debug db conexion
jenovateurs Apr 3, 2020
73550f7
fix: try debug db conexion
jenovateurs Apr 3, 2020
fece5e1
fix: try understand target db
jenovateurs Apr 4, 2020
db0a83e
fix: try understand target db
jenovateurs Apr 4, 2020
4c36040
fix: try understand target db
jenovateurs Apr 4, 2020
f55c1b4
fix: try understand target db
jenovateurs Apr 4, 2020
da33f03
fix: try understand target db
jenovateurs Apr 4, 2020
8226b83
fix: try understand target db
jenovateurs Apr 4, 2020
00f909a
fix: try understand target db
jenovateurs Apr 4, 2020
f910016
fix: try understand target db
jenovateurs Apr 4, 2020
1686984
fix: try understand target db
jenovateurs Apr 4, 2020
0754e68
fix: try understand target db
jenovateurs Apr 4, 2020
e20e7f2
fix: try understand target db
jenovateurs Apr 4, 2020
a88765e
fix: try understand target db
jenovateurs Apr 4, 2020
21955c5
fix: try understand target db
jenovateurs Apr 4, 2020
6bfbd4a
fix: try understand target db
jenovateurs Apr 4, 2020
80b03a5
fix: try understand target db
jenovateurs Apr 4, 2020
42aa20c
Fix duplicate camelCase properties
terax6669 Mar 21, 2020
ba3b15d
Tabs to spaces
terax6669 Mar 21, 2020
4e34fa3
fix: go back
jenovateurs Apr 4, 2020
fc58672
fix: try override environment file
jenovateurs Apr 4, 2020
ce1d6fb
fix: try override environment file
jenovateurs Apr 4, 2020
200341f
fix: go back
jenovateurs Apr 4, 2020
db5be66
fix: go back
jenovateurs Apr 4, 2020
5f8965f
fix: go back2
jenovateurs Apr 4, 2020
ddc4718
fix: try with pgsql
jenovateurs Apr 4, 2020
1435de9
fix: try with pgsql
jenovateurs Apr 4, 2020
8589316
fix: go back2
jenovateurs Apr 4, 2020
0072e81
fix: go back2
jenovateurs Apr 4, 2020
a87dd7a
fix: try with pgsql
jenovateurs Apr 4, 2020
9f3e57c
fix: try with pgsql
jenovateurs Apr 4, 2020
e99e251
fix: go back2
jenovateurs Apr 4, 2020
e96cfbe
fix: go back
jenovateurs Apr 4, 2020
0a43bd8
fix: try with pgsql
jenovateurs Apr 4, 2020
5c948ae
fix: try with pgsql
jenovateurs Apr 4, 2020
16f5df9
fix: go back2
jenovateurs Apr 4, 2020
f35249d
fix: go back
jenovateurs Apr 4, 2020
2ce82df
fix: other try
jenovateurs Apr 4, 2020
657bff2
fix:update Dataprovider to handle port
jenovateurs Apr 5, 2020
d96c9c3
fix: try debug
jenovateurs Apr 5, 2020
cc1af96
fix: try debug
jenovateurs Apr 5, 2020
58f7cd6
fix:update Dataprovider to handle port
jenovateurs Apr 5, 2020
e82ce28
fix: cancel debug
jenovateurs Apr 5, 2020
1518e57
fix: cancel debug
jenovateurs Apr 5, 2020
481164b
fix:update Dataprovider to handle port
jenovateurs Apr 5, 2020
c4224e7
fix: try debug
jenovateurs Apr 5, 2020
b03e596
fix: try debug
jenovateurs Apr 5, 2020
d8d684b
fix:update Dataprovider to handle port
jenovateurs Apr 5, 2020
d1df203
fix: try debug
jenovateurs Apr 5, 2020
fecbc87
fix:update Dataprovider to handle port
jenovateurs Apr 5, 2020
f84a3e2
fix: try debug
jenovateurs Apr 5, 2020
be4d3de
fix:update Dataprovider to handle port
jenovateurs Apr 5, 2020
139f83e
fix: add port
jenovateurs Apr 5, 2020
aa575c0
fix: add port
jenovateurs Apr 5, 2020
9237a7a
fix: add port
jenovateurs Apr 5, 2020
5c238c0
fix: add port
jenovateurs Apr 5, 2020
55c74bb
fix: missing script psql
jenovateurs Apr 5, 2020
88293d5
fix: missing script psql
jenovateurs Apr 5, 2020
3b21f1d
fix: missing script psql
jenovateurs Apr 5, 2020
c8530ab
fix: try to resolve mysql trouble
jenovateurs Apr 5, 2020
dc349b0
fix: try to resolve mysql trouble
jenovateurs Apr 5, 2020
dd512a9
fix: missing script psql
jenovateurs Apr 5, 2020
ba8cc71
fix: missing script psql
jenovateurs Apr 5, 2020
4481003
fix: missing script psql
jenovateurs Apr 5, 2020
2a07a20
fix: missing script psql
jenovateurs Apr 5, 2020
1127ffc
fix: try to fix console errors
jenovateurs Apr 5, 2020
768ea6f
fix: try to fix console errors
jenovateurs Apr 5, 2020
336d225
fix: missing script psql
jenovateurs Apr 5, 2020
674fd42
fix: debug cli
jenovateurs Apr 5, 2020
ce57cb8
fix: debug cli
jenovateurs Apr 5, 2020
f520bdd
fix: debug cli
jenovateurs Apr 5, 2020
3245cca
fix: cli trouble
jenovateurs Apr 6, 2020
5b260a5
fix: cli trouble
jenovateurs Apr 6, 2020
4df1aa6
fix: symbolic link
jenovateurs Apr 6, 2020
7c67af6
fix: config mysql file in console
jenovateurs Apr 6, 2020
42c3425
fix: include phpstan
jenovateurs Apr 6, 2020
3a9d961
fix: include phpstan
jenovateurs Apr 6, 2020
92e78ba
fix: add coverage code
jenovateurs Apr 6, 2020
8210051
fix: add coverage code
jenovateurs Apr 6, 2020
d58800b
fix: check with PHP 7.2/7.3/7.4
jenovateurs Apr 6, 2020
bb3eb66
fix: update test with travis
jenovateurs Apr 6, 2020
11299ce
fix: use same PHP version as travis
jenovateurs Apr 6, 2020
b857927
add mysql port for travis
jenovateurs Apr 6, 2020
a565432
fix: permission denied github actions
jenovateurs Apr 6, 2020
3f43808
fix: handle env password mysql
jenovateurs Apr 6, 2020
8ea6c6b
fix: add $PHPVersion on coverage
jenovateurs Apr 6, 2020
bca4fa9
fix: add $MYSQL_PASSWORD for Github Actions
jenovateurs Apr 6, 2020
9fc7a11
fix: Codacy - Double quote to prevent
jenovateurs Apr 6, 2020
e5ede37
fix: Codacy - Double quote to prevent
jenovateurs Apr 6, 2020
27c121f
fix: Codacy - Double quote to prevent
jenovateurs Apr 6, 2020
b95cfa9
fix: issue with script
jenovateurs Apr 6, 2020
3e53a5b
Update tests/_support/Helper/Acceptance.php
jenovateurs Apr 7, 2020
d6eed1e
Merge branch '4.0.x' of https://github.com/phalcon/phalcon-devtools i…
jenovateurs Apr 7, 2020
f40ca4c
refactor: some env variable
jenovateurs Apr 7, 2020
52643ae
refactor: some env variable
jenovateurs Apr 7, 2020
6c3c93e
fix: add comma on port postgres
jenovateurs Apr 7, 2020
29f3c04
fix: try fix postgres with travis
jenovateurs Apr 7, 2020
c85524e
fix: try fix postgres with travis
jenovateurs Apr 7, 2020
072fcdc
fix: try fix postgres with travis
jenovateurs Apr 7, 2020
44a3298
fix: try fix postgres with travis
jenovateurs Apr 7, 2020
b21b753
fix: add comma on port postgres
jenovateurs Apr 7, 2020
d0787b4
fix: add comma on port postgres
jenovateurs Apr 7, 2020
5224577
fix: add comma on port postgres
jenovateurs Apr 7, 2020
daf2696
Merge pull request #1446 from les-enovateurs/github_actions
jenovateurs Apr 10, 2020
b0fed14
Merge pull request #1433 from terax6669/fix_duplicate_properties
Jeckerson Apr 10, 2020
045a002
Update CHANGELOG.md
Jeckerson Apr 10, 2020
18dd7c3
Update CHANGELOG.md
Jeckerson Apr 10, 2020
1423bb1
fix: psalm - Calling empty on a boolean value is almost certainly uni…
jenovateurs Apr 11, 2020
09ad250
fix: #1410 - webtools not enabled by default
jenovateurs Apr 11, 2020
4dfd6fd
update changelog
jenovateurs Apr 11, 2020
7f48aa3
fix: issue with setRootPath
jenovateurs Apr 11, 2020
86388de
fix: codacy issues
jenovateurs Apr 11, 2020
1751dd5
fix: codacy issue
jenovateurs Apr 11, 2020
3466406
fix: codacy issue
jenovateurs Apr 11, 2020
39fc3fd
fix: codacy issue
jenovateurs Apr 11, 2020
bca79e2
fix: add space between project name and --enable
jenovateurs Apr 11, 2020
9845d60
Merge pull request #1449 from les-enovateurs/fix_release
Jeckerson Apr 11, 2020
b63dde6
Merge pull request #1450 from les-enovateurs/fix_project_enable_webtools
Jeckerson Apr 11, 2020
a02ea0f
Update CHANGELOG.md
Jeckerson Apr 11, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .ci/github_set_env.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash
#
# This file is part of the Phalcon Framework.
#
# (c) Phalcon Team <[email protected]>
#
# For the full copyright and license information, please view the
# LICENSE.txt file that was distributed with this source code.

set -e

sed -i "s/MYSQL_DB_PORT=3306/MYSQL_DB_PORT=$MYSQL_DB_PORT/g" .env
sed -i "s/MYSQL_DB_PASSWORD=''/MYSQL_DB_PASSWORD='$MYSQL_DB_PASSWORD'/g" .env
sed -i "s/POSTGRES_DB_PORT=5432/POSTGRES_DB_PORT=$POSTGRES_DB_PORT/g" .env
13 changes: 13 additions & 0 deletions .ci/link_devtools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env bash
#
# This file is part of the Phalcon Framework.
#
# (c) Phalcon Team <[email protected]>
#
# For the full copyright and license information, please view the
# LICENSE.txt file that was distributed with this source code.

mkdir "$GITHUB_WORKSPACE"/bin
ln -s "$GITHUB_WORKSPACE"/phalcon "$GITHUB_WORKSPACE"/bin/phalcon
echo "::add-path::$GITHUB_WORKSPACE/bin"
chmod +x "$GITHUB_WORKSPACE"/phalcon
13 changes: 8 additions & 5 deletions .ci/serve-webtools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@

set -e

WEB_TOOLS_PROJECT=${HOME}/webtools
#WEB_TOOLS_PROJECT=${HOME}/webtools

rm -rf ${WEB_TOOLS_PROJECT}
phalcon project --directory=$HOME --name=webtools
sed -i "s/'dbname' => 'test',/'dbname' => 'devtools',/g" ${WEB_TOOLS_PROJECT}/app/config/config.php
cd ${WEB_TOOLS_PROJECT}
rm -rf webtools
phalcon project --name=webtools
#phalcon project --directory=$HOME --name=webtools
#sed -i "s/'dbname' => 'test',/'dbname' => 'devtools',/g" ${WEB_TOOLS_PROJECT}/app/config/config.php
sed -i "s/database->charset/database->charset,\n\t\t'port' => \$config->database->port/g" webtools/app/config/services.php
#cd ${WEB_TOOLS_PROJECT}
cd webtools

phalcon webtools enable
phalcon serve &
141 changes: 141 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
name: "Tests"

on: [push, pull_request]

jobs:
run-tests:
name: PHP ${{ matrix.php-versions }}
runs-on: ubuntu-latest
env:
extensions: mbstring, intl, json, phalcon-4.0.5, mysql, pgsql, xdebug
key: cache-v2.0~19.03.2020
services:
mysql:
image: mysql:5.7
env:
MYSQL_DATABASE: devtools
MYSQL_ROOT_PASSWORD: root
ports:
- 3306/tcp
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
postgres:
image: postgres:10.8
ports:
- 5432/tcp
env:
POSTGRES_DB: devtools
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
strategy:
fail-fast: false
matrix:
php-versions: ['7.2', '7.3']
steps:
- uses: actions/checkout@v1

- name: Setup cache environment
id: cache-env
uses: shivammathur/cache-extensions@v1
with:
php-version: ${{ matrix.php-versions }}
extensions: ${{ env.extensions }}
key: ${{ env.key }}

- name: Cache extensions
uses: actions/cache@v1
with:
path: ${{ steps.cache-env.outputs.dir }}
key: ${{ steps.cache-env.outputs.key }}
restore-keys: ${{ steps.cache-env.outputs.key }}

- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
extensions: ${{ env.extensions }}
tools: pecl

- name: Get Composer Cache Directory
id: composer-cache
run: echo "::set-output name=dir::$(composer config cache-files-dir)"

- name: Cache composer dependencies
uses: actions/cache@v1
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install Composer dependencies
run: |
composer install --prefer-dist --no-suggest
composer require --dev phpstan/phpstan

- name: Initialise DataBase
env:
MYSQL_DB_PASSWORD: 'root'
MYSQL_DB_PORT: ${{ job.services.mysql.ports['3306'] }}
POSTGRES_DB_PORT: ${{ job.services.postgres.ports['5432'] }}
run: bash tests/_ci/setup_dbs_github.sh

- name: Symbolic link Phalcon devtools
run: bash ./.ci/link_devtools.sh

- name: Init Webtools and add ports in database setup
env:
MYSQL_DB_PASSWORD: 'root'
MYSQL_DB_PORT: ${{ job.services.mysql.ports['3306'] }}
POSTGRES_DB_PORT: ${{ job.services.postgres.ports['5432'] }}
run: bash ./.ci/serve-webtools.sh

- name: Setup tests
run: |
cp tests/.env.test .env
bash ./.ci/github_set_env.sh
mkdir .phalcon
vendor/bin/codecept build
vendor/bin/phpcs

- name: Run test suites
env:
MYSQL_DB_PASSWORD: 'root'
MYSQL_DB_PORT: ${{ job.services.mysql.ports['3306'] }}
POSTGRES_DB_PORT: ${{ job.services.postgres.ports['5432'] }}
if: success()
run: |
vendor/bin/codecept run --ext DotReporter acceptance -g mysql --env mysql
vendor/bin/codecept run --ext DotReporter acceptance -g pgsql --env pgsql
vendor/bin/codecept run --ext DotReporter acceptance -g common --coverage-xml=coverage-common-${{ matrix.php-versions }}.xml
vendor/bin/codecept run --ext DotReporter unit --coverage-xml=coverage-unit-${{ matrix.php-versions }}.xml
vendor/bin/codecept run --ext DotReporter functional --coverage-xml=coverage-functional-${{ matrix.php-versions }}.xml
vendor/bin/codecept run --ext DotReporter console --coverage-xml=coverage-console-${{ matrix.php-versions }}.xml

- name: If fail - Check Config file
env:
MYSQL_DB_PORT: ${{ job.services.mysql.ports['3306'] }}
POSTGRES_DB_PORT: ${{ job.services.postgres.ports['5432'] }}
if: failure()
run: |
cat webtools/app/config/config.php
cat webtools/app/config/services.php
echo "<?php print_r(include('webtools/app/config/config.php')) ?>" > content_config.php
php content_config.php
php tests/debug.php

- uses: actions/upload-artifact@v1
if: failure()
with:
name: Codeception Logs
path: tests/_output

- name: Check psalm
run: vendor/bin/psalm --show-info=false

- name: Check phpstan
run: vendor/bin/phpstan analyse -l 5 -c phpstan.neon src -v

- name: Upload coverage to Codecov
if: success()
uses: codecov/codecov-action@v1
with:
token: ${{secrets.CODECOV_TOKEN}}
file: ./tests/_output/coverage-*.xml
11 changes: 8 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ env:
- PHALCON_VERSION=v4.0.0

before_install:
- source $TRAVIS_BUILD_DIR/tests/_ci/environment
- export $(cut -d= -f1 $TRAVIS_BUILD_DIR/tests/_ci/environment)
- if [ -n "$GITHUB_TOKEN" ]; then composer config github-oauth.github.com $GITHUB_TOKEN; fi;
- bash tests/_ci/setup_dbs.sh

Expand All @@ -59,12 +57,19 @@ before_script:
- composer require --dev phpstan/phpstan
- ln -s $PWD/phalcon ~/bin/phalcon
- .ci/serve-webtools.sh
- sed -i "s/getenv('POSTGRES_DB_PORT')/5432/g" tests/_data/acceptance/pgsql/config.php
- cp tests/.env.test .env

script:
- mkdir .phalcon
- vendor/bin/phpcs
- vendor/bin/codecept build
- vendor/bin/codecept run --coverage-xml
- vendor/bin/codecept run --ext DotReporter acceptance -g mysql --env mysql
- vendor/bin/codecept run --ext DotReporter acceptance -g pgsql --env pgsql
- vendor/bin/codecept run --ext DotReporter acceptance -g common --coverage-xml=coverage-common-$PHAR_PHP_VERSION.xml
- vendor/bin/codecept run --ext DotReporter unit --coverage-xml=coverage-unit-$PHAR_PHP_VERSION.xml
- vendor/bin/codecept run --ext DotReporter functional --coverage-xml=coverage-functional-$PHAR_PHP_VERSION.xml
- vendor/bin/codecept run --ext DotReporter console --coverage-xml=coverage-console-$PHAR_PHP_VERSION.xml
- vendor/bin/psalm --show-info=false
- vendor/bin/phpstan analyse -l 5 -c phpstan.neon src -v

Expand Down
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# [4.0.2](https://github.com/phalcon/cphalcon/releases/tag/v4.0.2) (2020-04-11)
## Added
- Added launcher.bat to run cli with Windows and used DIRECTORY_SEPARATOR to find the file. [#1440](https://github.com/phalcon/phalcon-devtools/issues/1440) [@jenovateurs](https://github.com/jenovateurs)
## Changed

## Fixed
- Fixed include order of files in created project [#1417](https://github.com/phalcon/phalcon-devtools/issues/1417)
- Fixed Scaffold templates errors and phpstan errors. [#1429](https://github.com/phalcon/phalcon-devtools/issues/1429) [@jenovateurs](https://github.com/jenovateurs)
- Fixed duplicate camelCase properties [#1433](https://github.com/phalcon/phalcon-devtools/pull/1433)
- Fixed webtools not enabled by default when creating a new project [#1410](https://github.com/phalcon/phalcon-devtools/issues/1410) [@jenovateurs](https://github.com/jenovateurs)
8 changes: 0 additions & 8 deletions Makefile

This file was deleted.

21 changes: 0 additions & 21 deletions build/BuildPharDockerfile

This file was deleted.

6 changes: 5 additions & 1 deletion phpstan.neon
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ parameters:
excludes_analyse:
- %rootDir%/../../../src/Generator/*
- %rootDir%/../../../src/Commands/DotPhalconMissingException.php
- %rootDir%/../../../src/Mvc/Dispatcher/ErrorHandler.php
ignoreErrors:
- '#Strict comparison using === between#'
- '#Result of && is always true#'
- '#Result of || is always true#'
- '#Result of \|\| is always true#'
- '#Parameter \#1 \$adapter of class Phalcon\\Cache constructor expects#'
- '#Parameter \#1 \$eventsManager of method Phalcon#'
- '#Parameter \#1 \$exception_handler of function set_exception_handler expects#'
- '#Parameter \#1 \$function of function register_shutdown_function expects callable()#'
- '#Call to an undefined method [a-zA-Z0-9\\_]+::getShared\(\)#'
reportUnmatchedIgnoredErrors: false
4 changes: 4 additions & 0 deletions src/Access/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
use Phalcon\Di\Injectable;
use Phalcon\Events\Event;
use Phalcon\Mvc\Dispatcher;
use Phalcon\Events\ManagerInterface;

/**
* @property ManagerInterface $eventsManager
*/
class Manager extends Injectable
{
const EXCEPTION_ACTION_DISALLOWED = 10;
Expand Down
2 changes: 1 addition & 1 deletion src/Builder/Component/AllModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function build(): void
}
} else {
foreach ($db->listTables($schema) as $name) {
if ($defineRelations) {
if (true === $defineRelations) {
$hasMany[$name] = [];
$belongsTo[$name] = [];
$foreignKeys[$name] = [];
Expand Down
Loading