Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-30694

Enforce using native functions and constants invocations

    XMLWordPrintable

Details

    • Icon: Epic Epic
    • Resolution: Unresolved
    • Icon: High High
    • None
    • None
    • None
    • None
    • Native functions and constants invocations

    Description

      We should discuss enabling the following php-cs-fixer settings for all maintained packages:

      • native_function_invocation
      • native_constant_invocation

      Pros:

      • advocates recommended practice,
      • easy to control as it's a cs-fixer setting.

      Cons:

      • right now leads to inconsistency as we rather avoid `\` prefixes in favor of use ... imports, however php-cs-fixer does not provide this directly.

      This Epic is for grouping tasks dedicated to specific repositories.

      Attachments

        Activity

          People

            Unassigned Unassigned
            andrew.longosz@ibexa.co Andrew Longosz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: