Bug #19726 [Com]: Wrong number of spaces expected after instanceof static

From: Date: Thu, 29 Nov 2012 15:41:52 +0000
Subject: Bug #19726 [Com]: Wrong number of spaces expected after instanceof static
References: 1  Groups: php.pear.bugs 
Request: Send a blank email to pear-bugs+get-9380@lists.php.net to get a copy of this message
Edit report at https://pear.php.net/bugs/bug.php?id=19726&edit=1 ID: 19726 Comment by: info@strictcoding.co.uk Reported By: info at strictcoding dot co dot uk Summary: Wrong number of spaces expected after instanceof static Status: Open Type: Bug Package: PHP_CodeSniffer Operating System: CentOS Package Version: 1.4.2 PHP Version: 5.4.7 Roadmap Versions: New Comment: I forgot the most important: this is when using the PSR2 standard. Previous Comments: ------------------------------------------------------------------------ [2012-11-29 15:39:38] bmorel Description: ------------ When 'static' is used after 'instanceof', it is thought to be a static variable declaration, and wrongly expects a space after it. Test script: --------------- if ($geometry instanceof static) {} Expected result: ---------------- No errors Actual result: -------------- ERROR | Scope keyword "static" must be followed by a single space ------------------------------------------------------------------------ -- Edit this bug report at https://pear.php.net/bugs/bug.php?id=19726&edit=1

« previous php.pear.bugs (#9380) next »