Skip to content

[PHP 7.2] PHP Docblock Checker fails #170

Description

@ismaail

Expected behavior

RUNNING PLUGIN: PHP Docblock Checker (Stage: Test)
PLUGIN: FAILED (ALLOWED)

Actual behavior

RUNNING PLUGIN: PHP Docblock Checker (Stage: Test)
Exception: Warning: count(): Parameter must be an array or an object that implements Countable in /home/docker/src/Plugin/PhpDocblockChecker.php line 137
PLUGIN: FAILED (ALLOWED)

Steps to reproduce

The cause is the change of count() function in PHP 7.2

Environment

  • PHP Censor version: cb735cc
  • OS: Docker container: fpm-alpine
  • PHP version: 7.2
  • MySQL: 7.5

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions