mirror of
https://github.com/smarty-php/smarty.git
synced 2025-07-31 08:27:14 +02:00
Incorporated AnrDaemons suggestions, making composer figure out the required phpunit version instead of specifying it explicitly and removing a unneeded error supression (@).
This commit is contained in:
@ -3,29 +3,24 @@ os: linux
|
|||||||
dist: xenial
|
dist: xenial
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- travis_retry composer require phpunit/phpunit:^7.5
|
- travis_retry composer install
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
- php: 5.3 # Composer and PHPUnit require PHP 5.3.2+ to run, so we cannot test below 5.3
|
- php: 5.3 # Composer and PHPUnit require PHP 5.3.2+ to run, so we cannot test below 5.3
|
||||||
dist: precise # PHP 5.3 is supported only on Precise.
|
dist: precise # PHP 5.3 is supported only on Precise.
|
||||||
install: travis_retry composer require phpunit/phpunit:^4.8
|
|
||||||
- php: 5.4
|
- php: 5.4
|
||||||
dist: trusty # PHP 5.4 is supported only on Trusty.
|
dist: trusty # PHP 5.4 is supported only on Trusty.
|
||||||
install: travis_retry composer require phpunit/phpunit:^4.8
|
|
||||||
- php: 5.5
|
- php: 5.5
|
||||||
dist: trusty # PHP 5.5 is supported only on Trusty.
|
dist: trusty # PHP 5.5 is supported only on Trusty.
|
||||||
install: travis_retry composer require phpunit/phpunit:^4.8
|
|
||||||
- php: 5.6
|
- php: 5.6
|
||||||
install: travis_retry composer require phpunit/phpunit:^5.7
|
|
||||||
- php: 7.0
|
- php: 7.0
|
||||||
install: travis_retry composer require phpunit/phpunit:^6.5
|
|
||||||
- php: 7.1
|
- php: 7.1
|
||||||
- php: 7.2
|
- php: 7.2
|
||||||
- php: 7.3
|
- php: 7.3
|
||||||
- php: 7.4
|
- php: 7.4
|
||||||
- php: nightly
|
- php: nightly
|
||||||
install: travis_retry composer config platform.php 7.4.0 && composer require phpunit/phpunit:^7.5
|
install: travis_retry composer config platform.php 7.4.0 && composer install
|
||||||
fast_finish: true
|
fast_finish: true
|
||||||
allow_failures:
|
allow_failures:
|
||||||
- php: nightly # PHP 8 is still in beta
|
- php: nightly # PHP 8 is still in beta
|
||||||
|
@ -96,7 +96,7 @@ class Smarty_Internal_Compile_Private_Special_Variable extends Smarty_Internal_C
|
|||||||
if (strpos($_index[ 1 ], '$') === false && strpos($_index[ 1 ], '\'') === false) {
|
if (strpos($_index[ 1 ], '$') === false && strpos($_index[ 1 ], '\'') === false) {
|
||||||
return "defined('{$_index[1]}') ? constant('{$_index[1]}') : null";
|
return "defined('{$_index[1]}') ? constant('{$_index[1]}') : null";
|
||||||
} else {
|
} else {
|
||||||
return "defined({$_index[1]}) ? @constant({$_index[1]}) : null";
|
return "defined({$_index[1]}) ? constant({$_index[1]}) : null";
|
||||||
}
|
}
|
||||||
// no break
|
// no break
|
||||||
case 'config':
|
case 'config':
|
||||||
|
Reference in New Issue
Block a user