squizlabs / PHP_CodeSniffer

PHP_CodeSniffer tokenizes PHP files and detects violations of a defined set of coding standards.
BSD 3-Clause "New" or "Revised" License
10.68k stars 1.48k forks source link

حل مشكلة #3953

Closed Ahmed5megoo closed 2 months ago

Ahmed5megoo commented 2 months ago

Fatal error: Array and string offset access syntax with curly braces is no longer supported in /data/data/com.termux/files/home/fakecall/call.php on line 82 ~/fakecall $<!-- Before reporting a sniff related bug, please check the error code using phpcs -s.

If the error code starts with anything other than Generic, MySource, PEAR, PSR1, PSR2, PSR12, Squiz or Zend, the error is likely coming from an external PHP_CodeSniffer standard.

Please report bugs for externally maintained sniffs to the appropriate external standard repository (not here). -->

Describe the bug

A clear and concise description of what the bug is.

Code sample

echo "A short code snippet that can be used to reproduce the bug. Do NOT paste screenshots of code!";

Custom ruleset

<?xml version="1.0"?>
<ruleset name="My Custom Standard">
  <description>If you are using a custom ruleset, please enter it here.</description>
</ruleset>

To reproduce

Steps to reproduce the behavior:

  1. Create a file called test.php with the code sample above...
  2. Run phpcs test.php ...
  3. See error message displayed
    PHPCS output here

Expected behavior

A clear and concise description of what you expected to happen.

Versions (please complete the following information)

Operating System [e.g., Windows 10, MacOS 10.15]
PHP version [e.g., 7.2, 7.4]
PHP_CodeSniffer version [e.g., 3.5.5, master]
Standard [e.g., PSR2, PSR12, Squiz, custom]
Install type [e.g. Composer (global/local), PHAR, PEAR, git clone, other (please expand)]

Additional context

Add any other context about the problem here.

Please confirm:

jrfnl commented 2 months ago

Bogus, not related to this repo.