Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Php 5.6 session_start error NewFunctionParameters #120

Closed
ltdeta opened this issue Jul 15, 2016 · 3 comments
Closed

Php 5.6 session_start error NewFunctionParameters #120

ltdeta opened this issue Jul 15, 2016 · 3 comments
Labels
Milestone

Comments

@ltdeta
Copy link

ltdeta commented Jul 15, 2016

Why do I receive the following error when i check against php 5.6?

cmd phpcs command

phpcs -pvs --report-file=D:\PHPCompatibility.txt --report-width=auto --standard=PHPCompatibility --extensions=php,inc --runtime-set testVersion 5.6 d:\php_projekt\test

FILE: D:\php_projekt\source_top.inc
----------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
----------------------------------------------------------------------
 8 | ERROR | The function session_start does not have a parameter options
   |       | in PHP version 5.6 or earlier
   |       | (PHPCompatibility.PHP.NewFunctionParameters)
----------------------------------------------------------------------

source file (renamed extension from inc to txt
source_top.txt

@ltdeta ltdeta changed the title Php 5.6 session_start check error NewFunctionParameters Php 5.6 session_start error NewFunctionParameters Jul 15, 2016
@jrfnl
Copy link
Member

jrfnl commented Aug 8, 2016

That's a bug in the sniff. I'll be fixing this.

@ltdeta
Copy link
Author

ltdeta commented Aug 8, 2016

👍

@jrfnl
Copy link
Member

jrfnl commented Aug 10, 2016

PR #153 should fix this. Testing appreciated.

@wimg wimg closed this as completed in #153 Aug 13, 2016
@jrfnl jrfnl added this to the 7.0.3 milestone Apr 30, 2017
@jrfnl jrfnl added the bug label Mar 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants