Skip to content

Commit

Permalink
minor #32441 [PHPUnit Bridge] Spell "triggering" properly (greg0ire)
Browse files Browse the repository at this point in the history
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
-------

cad5f9a Spell "triggering" properly
  • Loading branch information
fabpot committed Jul 9, 2019
2 parents 98bbc57 + cad5f9a commit e69d1cb
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function __construct($message, array $trace, $file)
// No-op
}
$line = $trace[$i];
$this->trigerringFilePathType = $this->getPathType($file);
$this->triggeringFilePathType = $this->getPathType($file);
if (isset($line['object']) || isset($line['class'])) {
if (isset($line['class']) && 0 === strpos($line['class'], SymfonyTestsListenerFor::class)) {
$parsedMsg = unserialize($this->message);
Expand All @@ -88,7 +88,7 @@ public function __construct($message, array $trace, $file)
// then we need to use the serialized information to determine
// if the error has been triggered from vendor code.
if (isset($parsedMsg['triggering_file'])) {
$this->trigerringFilePathType = $this->getPathType($parsedMsg['triggering_file']);
$this->triggeringFilePathType = $this->getPathType($parsedMsg['triggering_file']);
}

return;
Expand Down Expand Up @@ -177,10 +177,10 @@ public function isLegacy($utilPrefix)
*/
public function getType()
{
if (self::PATH_TYPE_SELF === $this->trigerringFilePathType) {
if (self::PATH_TYPE_SELF === $this->triggeringFilePathType) {
return self::TYPE_SELF;
}
if (self::PATH_TYPE_UNDETERMINED === $this->trigerringFilePathType) {
if (self::PATH_TYPE_UNDETERMINED === $this->triggeringFilePathType) {
return self::TYPE_UNDETERMINED;
}
$erroringFile = $erroringPackage = null;
Expand Down

0 comments on commit e69d1cb

Please sign in to comment.