Skip to content

Commit 8ac71a7

Browse files
committed
small changes
1 parent 0bfecd5 commit 8ac71a7

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/.idea
22
/phpunit.phar
33
/vendor
4-
/composer.lock
4+
/composer.lock
5+
/composer.phar

src/Devristo/Phpws/Framing/WebSocketOpcode.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static function isControlFrame($type)
3838
{
3939
$controlFrames = array(self::CloseFrame, self::PingFrame, self::PongFrame);
4040

41-
return array_search($type, $controlFrames) !== false;
41+
return in_array($type, $controlFrames);
4242
}
4343

4444
}

0 commit comments

Comments
 (0)