File tree Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Expand file tree Collapse file tree 2 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -17,22 +17,17 @@ http://pear.php.net/dtd/package-2.0.xsd">
17
17
<date >2017-12-18</date >
18
18
<time >11:00:00</time >
19
19
<version >
20
- <release >3.2.1 </release >
21
- <api >3.2.1 </api >
20
+ <release >3.2.2 </release >
21
+ <api >3.2.2 </api >
22
22
</version >
23
23
<stability >
24
24
<release >stable</release >
25
25
<api >stable</api >
26
26
</stability >
27
27
<license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD 3-Clause License</license >
28
28
<notes >
29
- - Fixed problems with some scripts and plugins waiting for STDIN
30
- -- This was a notable problem with IDE plugins (e.g., PHPStorm) and build systems
31
- - Empty diffs are no longer followed by a newline character (request #1781)
32
- - Generic.Functions.OpeningFunctionBraceKernighanRitchie no longer complains when the open brace is followed by a close tag
33
- -- This makes the sniff more useful when used in templates
34
- -- Thanks to Joseph Zidell for the patch
35
- - Fixed bug #1782 : Incorrect detection of operator in ternary + anonymous function
29
+ - Disabled STDIN detection on Windows
30
+ -- This fixes a problem with IDE plugins (e.g., PHPStorm) hanging on Windows
36
31
</notes >
37
32
<contents >
38
33
<dir name =" /" >
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ class Config
23
23
*
24
24
* @var string
25
25
*/
26
- const VERSION = '3.2.1 ' ;
26
+ const VERSION = '3.2.2 ' ;
27
27
28
28
/**
29
29
* Package stability; either stable, beta or alpha.
@@ -360,7 +360,9 @@ public function __construct(array $cliArgs=[], $dieOnUnknownArg=true)
360
360
} while ($ currentDir !== '. ' && $ currentDir !== $ lastDir );
361
361
}//end if
362
362
363
- if (defined ('STDIN ' ) === false ) {
363
+ if (defined ('STDIN ' ) === false
364
+ || strtoupper (substr (PHP_OS , 0 , 3 )) === 'WIN '
365
+ ) {
364
366
return ;
365
367
}
366
368
You can’t perform that action at this time.
0 commit comments