8000 Merge branch '4.0' · symfony/symfony@a8e9337 · GitHub
[go: up one dir, main page]

Skip to content

Commit a8e9337

Browse files
Merge branch '4.0'
* 4.0: [travis] fix php-ext/ location throw exception if docblock factory does not exist
2 parents 3609744 + cffa7be commit a8e9337

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ before_install:
103103
local ext_name=$1
104104
local ext_so=$2
105105
local ext_dir=$(php -r "echo ini_get('extension_dir');")
106-
local ext_cache=~/php-ext/$(basename $ext_dir)/$ext_name
106+
local ext_cache=php-ext/$(basename $ext_dir)/$ext_name
107107
108108
if [[ -e $ext_cache/$ext_so ]]; then
109109
echo extension = $ext_cache/$ext_so >> $INI
@@ -134,7 +134,7 @@ before_install:
134134
# Install extra PHP extensions
135135
if [[ ! $skip ]]; then
136136
# install libsodium
137-
if [[ ! -e ~/php-ext/$(php -r "echo basename(ini_get('extension_dir'));")/libsodium/sodium.so ]]; then
137+
if [[ ! -e php-ext/$(php -r "echo basename(ini_get('extension_dir'));")/libsodium/sodium.so ]]; then
138138
sudo add-apt-repository ppa:ondrej/php -y
139139
sudo apt-get update -q
140140
sudo apt-get install libsodium-dev -y

UPGRADE-4.0.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -168,12 +168,12 @@ DependencyInjection
168168
Rename (or alias) your services to their FQCN id to make them autowirable.
169169
In 3.4, you can activate this behavior instead of having deprecation messages
170170
by setting the following parameter:
171-
171+
172172
```yml
173173
parameters:
174174
container.autowiring.strict_mode: true
175175
```
176-
176+
177177
From 4.0, you can remove it as it's the default behavior and the parameter is not handled anymore.
178178
179179
* `_defaults` and `_instanceof` are now reserved service names in Yaml configurations. Please rename any services with that names.
@@ -712,7 +712,7 @@ Process
712712

713713
* Extending `Process::run()`, `Process::mustRun()` and `Process::restart()` is
714714
not supported anymore.
715-
715+
716716
* The `getEnhanceWindowsCompatibility()` and `setEnhanceWindowsCompatibility()` methods of the `Process` class have been removed.
717717

718718
Profiler

src/Symfony/Component/PropertyInfo/Extractor/PhpDocExtractor.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ class PhpDocExtractor implements PropertyDescriptionExtractorInterface, Property
5353
*/
5454
public function __construct(DocBlockFactoryInterface $docBlockFactory = null, array $mutatorPrefixes = null, array $accessorPrefixes = null, array $arrayMutatorPrefixes = null)
5555
{
56+
if (!class_exists(DocBlockFactory::class)) {
57+
throw new \RuntimeException(sprintf('Unable to use the "%s" class as the "phpdocumentor/reflection-docblock" package is not installed.', __CLASS__));
58+
}
59+
5660
$this->docBlockFactory = $docBlockFactory ?: DocBlockFactory::createInstance();
5761
$this->contextFactory = new ContextFactory();
5862
$this->phpDocTypeHelper = new PhpDocTypeHelper();

0 commit comments

Comments
 (0)
0