Skip to content
This repository has been archived by the owner on Nov 30, 2019. It is now read-only.

Strict standards error #1

Open
djeraseit opened this issue Jun 3, 2016 · 2 comments
Open

Strict standards error #1

djeraseit opened this issue Jun 3, 2016 · 2 comments

Comments

@djeraseit
Copy link

Error when trying to use the class per your README. PHP version is 5.4.45

PHP Strict Standards: Declaration of Nemiro\Nginx\DirectiveGroup::AddDirective() should be compatible with Nemiro\Nginx\Directive::AddDirective($nameOrInstance, $parameters = NULL, $childs = NULL) in /var/www/html/nginx/DirectiveGroup.php on line 74
NULL
PHP Fatal error: Call to a member function ContainsChild() on a non-object in /var/www/html/nginx.php on line 11
This is my line 11:

if ($conf['server']->ContainsChild('listen'))

@alekseynemiro
Copy link
Member

I'm not tested in PHP 5.4.
Minimal version - 5.5.

@hemratna
Copy link

I am facing this issue on PHP 7.3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants