Skip to content

Commit 77da0f0

Browse files
minor #19718 Break switch (tvlooy)
This PR was merged into the 2.7 branch. Discussion ---------- Break switch | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- f0d02c2 remove duplicate instruction
2 parents 4561fbf + f0d02c2 commit 77da0f0

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Tests/Iterator/MockSplFileInfo.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,10 @@ public function setType($type)
9595
if (is_string($type)) {
9696
switch ($type) {
9797
case 'directory':
98-
$this->type = self::TYPE_DIRECTORY;
9998
case 'd':
10099
$this->type = self::TYPE_DIRECTORY;
101100
break;
102101
case 'file':
103-
$this->type = self::TYPE_FILE;
104102
case 'f':
105103
$this->type = self::TYPE_FILE;
106104
break;

0 commit comments

Comments
 (0)