Skip to content

Commit 54a77f2

Browse files
authored
Merge pull request #1227 from phalcon/3.4.x
3.4.0
2 parents 40134b0 + 33540b9 commit 54a77f2

File tree

90 files changed

+1394
-803
lines changed

Some content is hidden

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

90 files changed

+1394
-803
lines changed

.travis.yml

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ dist: trusty
66
php:
77
- 5.5
88
- 5.6
9-
- 7.1
109

1110
services:
1211
- postgresql
@@ -15,6 +14,10 @@ matrix:
1514
include:
1615
- php: 7.0
1716
env: ZEND_BACKEND="--backend=ZendEngine3"
17+
- php: 7.1
18+
env: ZEND_BACKEND="--backend=ZendEngine3"
19+
- php: 7.2
20+
env: ZEND_BACKEND="--backend=ZendEngine3"
1821

1922
git:
2023
depth: 1
@@ -28,41 +31,30 @@ cache:
2831
- vendor
2932
- $HOME/.ccache
3033
- $HOME/.composer/cache
31-
- $HOME/cphalcon
32-
- $HOME/ext
34+
- $HOME/cphalcon/$PHALCON_VERSION
35+
- $HOME/ext/$PHALCON_VERSION
3336

3437
env:
3538
global:
36-
- TEST_DB_POSTGRESQL_HOST="127.0.0.1"
37-
- TEST_DB_POSTGRESQL_PORT="5432"
38-
- TEST_DB_POSTGRESQL_USER="postgres"
39-
- TEST_DB_POSTGRESQL_PASSWD=""
40-
- TEST_DB_POSTGRESQL_NAME="devtools"
41-
- TEST_DB_POSTGRESQL_SCHEMA="public"
42-
- TEST_DB_MYSQL_DSN="mysql:host=127.0.0.1;dbname=devtools"
43-
- TEST_DB_MYSQL_HOST="127.0.0.1"
44-
- TEST_DB_MYSQL_PORT="3306"
45-
- TEST_DB_MYSQL_USER="root"
46-
- TEST_DB_MYSQL_PASSWD=""
47-
- TEST_DB_MYSQL_NAME="devtools"
48-
- TEST_DB_MYSQL_CHARSET="utf8"
4939
- PATH="$PATH:~/bin"
5040
- DISPLAY=":99.0"
51-
- PHALCON_VERSION="v3.3.2"
41+
- PHALCON_VERSION="v3.4.0"
5242

5343
before_install:
5444
- export PHP_VERSION=$(php-config --version)
5545
- export PHP_MAJOR="$(echo $TRAVIS_PHP_VERSION | cut -d '.' -f 1)"
5646
- export PHP_EXTENSION_DIR=$(php-config --extension-dir)
47+
- source $TRAVIS_BUILD_DIR/tests/_ci/environment
48+
- export $(cut -d= -f1 $TRAVIS_BUILD_DIR/tests/_ci/environment)
5749
- phpenv config-rm xdebug.ini || true
5850
- if [ -n "$GH_TOKEN" ]; then composer config github-oauth.github.com $GH_TOKEN; fi;
59-
- if [ ! -f "$HOME/cphalcon/tests/_ci/phalcon.ini" ]; then git clone -q --depth=1 https://github.com/phalcon/cphalcon.git $HOME/cphalcon >/dev/null 2>&1; fi;
51+
- if [ ! -f "$HOME/cphalcon/$PHALCON_VERSION/tests/_ci/phalcon.ini" ]; then git clone -q --depth=1 https://github.com/phalcon/cphalcon.git $HOME/cphalcon/$PHALCON_VERSION >/dev/null 2>&1; fi;
6052
- bash tests/_ci/setup_dbs.sh
6153

6254
install:
63-
- if [ ! -f $HOME/ext/$PHP_VERSION/phalcon.so ]; then cd $HOME/cphalcon/build && bash ./install --phpize $(phpenv which phpize) --php-config $(phpenv which php-config) && mkdir -p $HOME/ext/$PHP_VERSION && cp $PHP_EXTENSION_DIR/phalcon.so $HOME/ext/$PHP_VERSION/phalcon.so; fi;
64-
- if [ -f $HOME/ext/$PHP_VERSION/phalcon.so ]; then cp $HOME/ext/$PHP_VERSION/phalcon.so $PHP_EXTENSION_DIR/phalcon.so; fi;
65-
- phpenv config-add $HOME/cphalcon/tests/_ci/phalcon.ini
55+
- if [ ! -f $HOME/ext/$PHALCON_VERSION/$PHP_VERSION/phalcon.so ]; then cd $HOME/cphalcon/$PHALCON_VERSION/build && bash ./install --phpize $(phpenv which phpize) --php-config $(phpenv which php-config) && mkdir -p $HOME/ext/$PHP_VERSION && cp $PHP_EXTENSION_DIR/phalcon.so $HOME/ext/$PHP_VERSION/phalcon.so; fi;
56+
- if [ -f $HOME/ext/$PHALCON_VERSION/$PHP_VERSION/phalcon.so ]; then cp $HOME/ext/$PHALCON_VERSION/$PHP_VERSION/phalcon.so $PHP_EXTENSION_DIR/phalcon.so; fi;
57+
- phpenv config-add $HOME/cphalcon/$PHALCON_VERSION/tests/_ci/phalcon.ini
6658
- cd $TRAVIS_BUILD_DIR
6759
- travis_retry composer install --prefer-dist --no-interaction
6860
- if [ "$PHP_MAJOR" == "7" ]; then composer require --dev phpstan/phpstan:^0.9; fi;
@@ -71,6 +63,7 @@ before_script:
7163
- ln -s $PWD/phalcon.php ~/bin/phalcon
7264

7365
script:
66+
- vendor/bin/phpcs
7467
- vendor/bin/codecept build
7568
- vendor/bin/codecept run unit -v
7669
- vendor/bin/codecept run functional -v

CONTRIBUTING.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ Thanks! <br />
5555
Phalcon Team
5656

5757

58-
[pr]: https://help.github.com/articles/using-pull-requests/
58+
[pr]: https://help.github.com/articles/about-pull-requests/
5959
[forum]: https://forum.phalconphp.com/
6060
[cphalcon]: https://github.com/phalcon/cphalcon
61-
[srt]: https://github.com/phalcon/cphalcon/wiki/Submit-Reproducible-Test
62-
[gb]: https://github.com/phalcon/cphalcon/wiki/Generating-a-backtrace
63-
[support]: https://phalconphp.com/support
64-
[nfr]: https://github.com/phalcon/cphalcon/wiki/New-Feature-Request---NFR
65-
[psr]: http://www.php-fig.org/psr/
61+
[srt]: https://docs.phalconphp.com/en/latest/reproducible-tests
62+
[gb]: https://docs.phalconphp.com/en/latest/generating-backtrace
63+
[support]: https://phalconphp.com/en/support/
64+
[nfr]: https://docs.phalconphp.com/en/latest/new-feature-request
65+
[psr]: https://www.php-fig.org/psr/

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[![Software License](https://img.shields.io/badge/license-BSD--3-brightgreen.svg?style=flat-square)][:license:]
55
[![Total Downloads](https://img.shields.io/packagist/dt/phalcon/devtools.svg?style=flat-square)][:packagist:]
66
[![Daily Downloads](https://img.shields.io/packagist/dd/phalcon/devtools.svg?style=flat-square)][:packagist:]
7-
[![Build Status](https://travis-ci.org/phalcon/phalcon-devtools.svg?branch=master)][:travis:]
7+
[![Build Status](https://api.travis-ci.org/phalcon/phalcon-devtools.svg?branch=master)][:travis:]
88

99
![Phalcon WebTools](https://cloud.githubusercontent.com/assets/1256298/18617851/b7d31558-7de2-11e6-83e0-30e5902af714.png)
1010

@@ -21,7 +21,7 @@ with Phalcon framework.
2121
## Requirements
2222

2323
* PHP >= 5.5
24-
* Phalcon >= 3.2.0
24+
* Phalcon >= 3.3.0
2525

2626
## Installing via Composer
2727

@@ -36,7 +36,7 @@ Create the composer.json file as follows:
3636
```json
3737
{
3838
"require-dev": {
39-
"phalcon/devtools": "~3.2"
39+
"phalcon/devtools": "~3.4"
4040
}
4141
}
4242
```
@@ -114,7 +114,7 @@ This command should display something similar to:
114114
```sh
115115
$ phalcon --help
116116

117-
Phalcon DevTools (3.2.13)
117+
Phalcon DevTools (3.4.0)
118118

119119
Help:
120120
Lists the commands available in Phalcon devtools

bootstrap/autoload.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
+------------------------------------------------------------------------+
55
| Phalcon Developer Tools |
66
+------------------------------------------------------------------------+
7-
| Copyright (c) 2011-2016 Phalcon Team (https://www.phalconphp.com) |
7+
| Copyright (c) 2011-present Phalcon Team (https://www.phalconphp.com) |
88
+------------------------------------------------------------------------+
99
| This source file is subject to the New BSD License that is bundled |
1010
| with this package in the file LICENSE.txt. |
@@ -25,7 +25,7 @@
2525
if (!extension_loaded('phalcon')) {
2626
throw new Exception(
2727
"Phalcon extension isn't installed, follow these instructions to install it: " .
28-
'https://docs.phalconphp.com/en/latest/reference/install.html'
28+
'https://docs.phalconphp.com/en/latest/installation'
2929
);
3030
}
3131

@@ -134,6 +134,6 @@
134134
if (Version::getId() < COMPATIBLE_VERSION) {
135135
throw new Exception(
136136
"Your Phalcon version isn't compatible with Developer Tools, " .
137-
'download the latest at: https://phalconphp.com/download'
137+
'download the latest at: https://phalconphp.com/en/download/linux'
138138
);
139139
}

composer.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@
2323
},
2424
"require": {
2525
"php": ">=5.5",
26-
"ext-phalcon": "~3.1",
27-
"psy/psysh": "^0.9",
26+
"ext-phalcon": "~3.3",
27+
"psy/psysh": "~0.9",
2828
"nikic/php-parser": "^3.1"
2929
},
3030
"require-dev": {
@@ -33,7 +33,8 @@
3333
"phpdocumentor/reflection-docblock": "^2.0",
3434
"phpunit/phpunit": "^4.8",
3535
"codeception/specify": "^0.4",
36-
"codeception/verify": "^0.3"
36+
"codeception/verify": "^0.3",
37+
"squizlabs/php_codesniffer": "^3.2"
3738

3839
},
3940
"autoload": {

phpcs.xml.dist

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="Phalcon Developer Tools">
3+
4+
<!--
5+
The name attribute of the ruleset tag is displayed
6+
when running PHP_CodeSniffer with the -v command line
7+
argument. The description tag below is not displayed anywhere
8+
except in this file, so it can contain information for
9+
developers who may change this file in the future.
10+
-->
11+
12+
<description>Phalcon Coding Standards</description>
13+
14+
<!-- Show sniff codes in all reports -->
15+
<arg value="s"/>
16+
17+
<!-- Use PSR-2 as a base -->
18+
<rule ref="PSR2"/>
19+
20+
<!--
21+
If no files or directories are specified on the command line
22+
your custom standard can specify what files should be checked
23+
instead.
24+
Note that specifying any file or directory path
25+
on the command line will ignore all file tags.
26+
-->
27+
<file>scripts</file>
28+
29+
<exclude-pattern>scripts/Phalcon/Generator/</exclude-pattern>
30+
<exclude-pattern>scripts/Phalcon/Devtools/</exclude-pattern>
31+
32+
<!--
33+
You can hard-code ignore patterns directly into your
34+
custom standard so you don't have to specify the
35+
patterns on the command line.
36+
-->
37+
</ruleset>

resources/bootstrap/fonts/glyphicons-halflings-regular.svg

Lines changed: 3 additions & 3 deletions
Loading

resources/codemirror/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# CodeMirror
2-
[![Build Status](https://travis-ci.org/codemirror/CodeMirror.svg)](https://travis-ci.org/codemirror/CodeMirror)
3-
[![NPM version](https://img.shields.io/npm/v/codemirror.svg)](https://www.npmjs.org/package/codemirror)
2+
[![Build Status](https://api.travis-ci.org/codemirror/CodeMirror.svg)](https://travis-ci.org/codemirror/CodeMirror)
3+
[![NPM version](https://img.shields.io/npm/v/codemirror.svg)](https://www.npmjs.com/package/codemirror)
44
[Funding status: ![maintainer happiness](https://marijnhaverbeke.nl/fund/status_s.png?again)](https://marijnhaverbeke.nl/fund/)
55

66
CodeMirror is a JavaScript component that provides a code editor in

resources/codemirror/addon/merge/merge.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
})(function(CodeMirror, diff_match_patch) {
1414
"use strict";
1515
var Pos = CodeMirror.Pos;
16-
var svgNS = "http://www.w3.org/2000/svg";
16+
var svgNS = "https://www.w3.org/2000/svg";
1717

1818
function DiffView(mv, type) {
1919
this.mv = mv;

resources/codemirror/mode/clojure/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<h2>Clojure mode</h2>
2727
<form><textarea id="code" name="code">
2828
; Conway's Game of Life, based on the work of:
29-
;; Laurent Petit https://gist.github.com/1200343
29+
;; Laurent Petit https://gist.github.com/laurentpetit/1200343
3030
;; Christophe Grand http://clj-me.cgrand.net/2011/08/19/conways-game-of-life
3131

3232
(ns ^{:doc "Conway's Game of Life."}

0 commit comments

Comments
 (0)