Skip to content

File with "defined() or define()" syntax triggers PSR1.Files.SideEffects.FoundWithSymbols #2082

Closed
@fl0v

Description

@fl0v
<?php
defined('APP_BASE_URL') or define('APP_BASE_URL', '/');

triggers
WARNING
A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 2 and the first side effect is on line 2. (PSR1.Files.SideEffects.FoundWithSymbols)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions