minor #32441 [PHPUnit Bridge] Spell "triggering" properly (greg0ire)

This PR was merged into the 4.3 branch.

Discussion
----------

[PHPUnit Bridge] Spell "triggering" properly

As a side effect, the property name matches the one in the declaration,
which was correct.

| Q             | A
| ------------- | ---
| Branch?       | 4.3 for bug fixes
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | n/a
| License       | MIT
| Doc PR        | n/a

Commits
-------

cad5f9a106 Spell "triggering" properly
This commit is contained in:
Fabien Potencier 2019-07-09 09:10:48 +02:00
commit e69d1cb38d

View File

@ -76,7 +76,7 @@ class Deprecation
// No-op // No-op
} }
$line = $trace[$i]; $line = $trace[$i];
$this->trigerringFilePathType = $this->getPathType($file); $this->triggeringFilePathType = $this->getPathType($file);
if (isset($line['object']) || isset($line['class'])) { if (isset($line['object']) || isset($line['class'])) {
if (isset($line['class']) && 0 === strpos($line['class'], SymfonyTestsListenerFor::class)) { if (isset($line['class']) && 0 === strpos($line['class'], SymfonyTestsListenerFor::class)) {
$parsedMsg = unserialize($this->message); $parsedMsg = unserialize($this->message);
@ -88,7 +88,7 @@ class Deprecation
// then we need to use the serialized information to determine // then we need to use the serialized information to determine
// if the error has been triggered from vendor code. // if the error has been triggered from vendor code.
if (isset($parsedMsg['triggering_file'])) { if (isset($parsedMsg['triggering_file'])) {
$this->trigerringFilePathType = $this->getPathType($parsedMsg['triggering_file']); $this->triggeringFilePathType = $this->getPathType($parsedMsg['triggering_file']);
} }
return; return;
@ -177,10 +177,10 @@ class Deprecation
*/ */
public function getType() public function getType()
{ {
if (self::PATH_TYPE_SELF === $this->trigerringFilePathType) { if (self::PATH_TYPE_SELF === $this->triggeringFilePathType) {
return self::TYPE_SELF; return self::TYPE_SELF;
} }
if (self::PATH_TYPE_UNDETERMINED === $this->trigerringFilePathType) { if (self::PATH_TYPE_UNDETERMINED === $this->triggeringFilePathType) {
return self::TYPE_UNDETERMINED; return self::TYPE_UNDETERMINED;
} }
$erroringFile = $erroringPackage = null; $erroringFile = $erroringPackage = null;