2.3.35. PHP recommendations¶

This ruleset is a collection of warnings and notes that are available in the PHP manual. For example, return do not require parenthesis.

Total : 22 analysis

  • Eval() Usage

  • Using Short Tags

  • Strpos()-like Comparison

  • Bad Constants Names

  • Use With Fully Qualified Name

  • Dangling Array References

  • Return With Parenthesis

  • No Real Comparison

  • Use Constant Instead Of Function

  • Throw In Destruct

  • Useless Type Casting

  • No isset() With empty()

  • Avoid array_push()

  • Crc32() Might Be Negative

  • Not A Scalar Type

  • Implode One Arg

  • Could Be Stringable

  • Missing Attribute Attribute

  • No Constructor In Interface

  • Unsupported Operand Types

  • Do Not Cast To Int

  • Reserved Methods

2.3.35.1. Specs¶

Short name

PHP recommendations

Available in

Entreprise Edition, Exakat Cloud

Exakat

Navigation

  • Introduction
  • Release Note

GETTING STARTED

  • Standard installation
  • Docker installation
  • Tutorials

USER GUIDE

  • Overview
  • PHP Version
  • Library & Framework Support
  • Configuration
  • Scoping analysis
  • Rule
  • Report
  • Cobbler

REFERENCE GUIDE

  • 1. Rules
  • 2. Rulesets
  • 3. Reports
  • 4. Cobblers
  • 5. Real Code Cases

ADMINISTRATOR GUIDE

  • Installation
  • Upgrading
  • Configuration
  • Commands

OTHERS

  • Frequently Asked Questions
  • Glossary
  • Annex

Related Topics

  • Documentation overview
    • 2. Rulesets
      • Previous: 2.3.34. One Liners
      • Next: 2.3.36. Performances
©2015-2025, Damien Seguy - Exakat. | Powered by Sphinx 9.0.4 & Alabaster 1.0.0 | Page source