[
  {
    "path": ".dir-locals.el",
    "content": "((emacs-lisp-mode (package-lint-main-file . \"php-mode.el\")))\n"
  },
  {
    "path": ".github/dependabot.yml",
    "content": "version: 2\nupdates:\n  - package-ecosystem: github-actions\n    directory: /\n    schedule:\n      interval: daily\n"
  },
  {
    "path": ".github/workflows/test.yml",
    "content": "name: CI\n\non:\n  push:\n    paths-ignore:\n    - '**/*.md'\n    - 'etc/*'\n  workflow_dispatch:\n\nconcurrency:\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: true\n\njobs:\n  build:\n    runs-on: ${{ matrix.os }}\n    continue-on-error: ${{ matrix.experimental }}\n    strategy:\n      fail-fast: false\n      matrix:\n        os: [ubuntu-latest, macos-latest, windows-latest]\n        emacs-version:\n          - \"27.2\"\n          - \"28.2\"\n          - \"29.4\"\n          - \"30.2\"\n        experimental: [false]\n        include:\n          - os: ubuntu-latest\n            emacs-version: snapshot\n            experimental: true\n          - os: macos-latest\n            emacs-version: snapshot\n            experimental: true\n          - os: windows-latest\n            emacs-version: snapshot\n            experimental: true\n        exclude:\n          - os: macos-latest\n            emacs-version: \"27.2\"\n    steps:\n    - uses: actions/setup-python@v6\n      with:\n        python-version: '3.11'\n        architecture: 'x64'\n    - uses: jcs090218/setup-emacs@master\n      with:\n        version: ${{ matrix.emacs-version }}\n    - uses: emacs-eask/setup-eask@master\n      with:\n        version: 'snapshot'\n    - uses: actions/checkout@v5\n    - name: Run tests\n      run: 'make .eask test'\n    - name: Run tests (allow failure)\n      run: 'make .eask test || true'\n"
  },
  {
    "path": ".gitignore",
    "content": "*.elc\n*~\n.dir-locals-2.el\n/.cask/*\n/.eask/*\n/.keg/*\n/dist\n/.php-cs-fixer.cache\nphp-mode-autoloads.el\nphp_manual_en.json\n"
  },
  {
    "path": ".mailmap",
    "content": "Elis Axelsson <elis.axelsson@gmail.com> Elis <elis.axelsson@gmail.com>\nDavid Arroyo Menéndez <davidam@gnu.org> David Arroyo7 <davidam@gnu.org>\nJen-Chieh Shen <jcs090218@gmail.com> JenChieh <jcs090218@gmail.com>\nJoe Wreschnig <joe.wreschnig@gmail.com> Joe <joe@dev3>\nJon Dufresne <jon.dufresne@gmail.com> Jon Dufrense <mailto:jon.dufresne@gmail.com>\nSyohei YOSHIDA <syohex@gmail.com> Shohei YOSHIDA <shohei.yoshida@dena.com>\nSyohei YOSHIDA <syohex@gmail.com> Syohei Yoshida <syohex@gmail.com>\n"
  },
  {
    "path": "AUTHORS.md",
    "content": "# Authors\n\n## Author\n\n- [Turadg Aleahmad](https://github.com/turadg) (Original Author)\n- [Daniel Hackney](https://github.com/haxney) (Integrated with CC Mode)\n\n## Maintainer\n\n- [USAMI Kenta (@zonuexe)](https://github.com/zonuexe) <tadsan@zonu,me>\n\n## Retired Maintainers\n\n- [Aaron S. Hawley](https://users.ninthfloor.org/~ashawley/)\n- [Lennart Borgman](https://www.emacswiki.org/emacs/LennartBorgman)\n- [Eric James Michael Ritz](https://github.com/ejmr)\n- [Syohei Yoshida](https://syohex.org/)\n\n## Contributors\n\nAll contributors listed below improved PHP Mode as well.\n\nNames Sorted Alphabetically:\n\n- Aaron S. Hawley\n- Alan Pearce\n- Alex Figl-Brick\n- Andreas Röhler\n- Andrei Chițu\n- Antoine Brand\n- Bence Kalmar\n- Bill Lovett\n- Bob W. Hogg\n- Boris Folgmann\n- Carl Groner\n- Charlie McMackin\n- Chris Morris\n- Christian Albrecht\n- Christian Weiske\n- Craig Andrews\n- Daniel Hackney\n- David Arroyo Menéndez\n- David House\n- David Maus\n- Demis Balbach\n- Dias Badekas\n- Doug Marcey\n- Elis Axelsson\n- Emanuele Tomasi\n- Engelke Eschner\n- Eric James Michael Ritz\n- Eric Mc Sween\n- François-Xavier Bois\n- Fred Yankowski\n- Gerrit Riessen\n- Giacomo Tesio\n- Gregory Stark\n- Gu Weigang\n- Herbert Jones\n- Hernawan Fa'iz Abdillah\n- Ian Eure\n- Jacek Wysocki\n- Jakub Jankiewicz\n- James Laver\n- Jeff Beeman\n- Jen-Chieh Shen\n- Joe Wreschnig\n- John Keller\n- Jon Dufresne\n- Joris Steyn\n- Juanjo\n- Kevin Blake\n- Lennart Borgman\n- Marcin Antczak\n- Mark A. Hershberger\n- Mathias Meyer\n- Maël Nison\n- Michael Dwyer\n- Michael Stolovitzsky\n- Michele Bini\n- Nate Eagleson\n- Nicholas D Steeves\n- Nils Rennebarth\n- Norio Suzuki\n- Olaf The Viking\n- Peter Oliver\n- Phil Sainty\n- Philippe Ivaldi\n- Piotr Kwiecinski\n- Rex McMaster\n- Roland\n- Rosenfeld\n- Ryan\n- Sammartino\n- Sean Champ\n- Sebastian Wiesner\n- Serghei Iakovlev\n- Shohei YOSHIDA\n- Stefan Monnier\n- Stig Bakken\n- Syohei YOSHIDA\n- Tim Landscheidt\n- Tom Willemsen\n- Torsten Martinsen\n- U-CPT\\deb\n- USAMI Kenta\n- Valentin Funk\n- Ville Skytta\n- Vinai Kopp\n- fabacino\n- fallchildren\n- flack\n- l3msh0\n- phil-s\n- ppercot\n- take\n- takeokunn\n- tangxinfa\n- tetsujin\n- tijsmallaerts\n- zapad\n- 顾伟刚\n\nA chronological list of pre-2019 contributors can be found at [wiki/Authors](https://github.com/emacs-php/php-mode/wiki/Authors).\n\nContributors since 2011, where this project was hosted, can also be found at [graphs/contributors](https://github.com/emacs-php/php-mode/graphs/contributors), except for accounts that have been withdrawn from GitHub.\n"
  },
  {
    "path": "CHANGELOG.md",
    "content": "# Changes for PHP Mode by Version\n\nAll notable changes of the PHP Mode 1.19.1 release series are documented in this file using the [Keep a CHANGELOG](https://keepachangelog.com/) principles.\n\n## Unreleased\n\n### Changed\n\n * Add `readonly` class modifier to [Imenu] ([#802])\n * Add `enum` support to `php-current-class` ([#802])\n * Remove hardcoding of implicit paths in `php` that are not guaranteed to exist ([#803])\n\n[Imenu]: https://www.gnu.org/software/emacs/manual/html_node/emacs/Imenu.html\n[#802]: https://github.com/emacs-php/php-mode/pull/802\n[#803]: https://github.com/emacs-php/php-mode/pull/803\n\n## [1.27.0] - 2024-12-20\n\n### Added\n\n * Support PHP 8.4 property-hooks ([#797])\n\n### Changed\n\n * Improve `php-syntax-propertize-extend-region` efficiency ([#789], thanks [@phil-s]!)\n * Update `php-phpdoc-type-names` to support [PHPStan 2.0.4] ([#795])\n\n### Fixed\n\n * Fix Emacs 30 byte-compile errors ([#792])\n * Use `when-let*` instead of `when-let` to enhance Emacs 30 compatibility ([#796])\n\n### Removed\n\n * Drop support for Emacs 26 ([#788])\n\n[@phil-s]: https://github.com/phil-s\n[PHPStan 2.0.4]: https://github.com/phpstan/phpstan/releases/tag/2.0.4\n[#788]: https://github.com/emacs-php/php-mode/pull/788\n[#789]: https://github.com/emacs-php/php-mode/pull/789\n[#792]: https://github.com/emacs-php/php-mode/pull/792\n[#795]: https://github.com/emacs-php/php-mode/pull/795\n[#796]: https://github.com/emacs-php/php-mode/pull/796\n[#797]: https://github.com/emacs-php/php-mode/pull/797\n\n## [1.26.1] - 2024-09-13\n\n### Added\n\n * Add `php-base-mode` which is the base of php related modes ([#772])\n   * `php-base-mode` is designed as a common parent mode for `php-mode` ~~and [`php-ts-mode`](https://github.com/emacs-php/php-ts-mode)~~.\n\n### Changed\n\n * Make `php-mode` inherit from `php-base-mode` instead of `c-mode` ([#772])\n * Modify indentation of [PEAR Coding Standards] ([#774], [#777])\n   * No longer overindent it by default, since we don't see any mention in the coding style that it should hang `.`. (refs [#227] and [#229])\n   * **If you have any feedback on PEAR style, please let us know in [the discussion #776][#776].**\n * Remove `$` from face names for interoperability with treesit ([#780], [emacs-php/php-ts-mode#68])\n   * `php-$this` → `php-this`\n   * `php-$this-sigil` → `php-this-sigil`\n * Add `php-function-call-standard` face inherit `font-lock-function-call-face` on Emacs 29.1 and above ([#782], thanks [@bricka]!)\n * Add `-tranditional` suffix to the `php-*-call` faces.\n   * `php-function-call` → `php-function-call-traditional`\n   * `php-method-call` → `php-method-call-traditional`\n   * `php-static-method-call` → `php-static-method-call-traditional`\n * Add variables for the `php-function-call`, `php-method-call`, and `php-static-method-call` faces, defaulting to the `-traditional` face.\n * Changes how php-syntax-propertize-rules are applied for the first time. ([#785] and [#786])\n   * This change is expected to make heredoc and attribute coloring more stable and reduce flicker.\n\n### Removed\n\n * Remove `php-mode-disable-c-mode-hook` custom variable and `php-mode-neutralize-cc-mode-effect` function ([#775])\n   * `php-mode` no longer inherits `c-mode`, so this variable won't work.\n\n[#227]: https://github.com/emacs-php/php-mode/pull/227\n[#229]: https://github.com/emacs-php/php-mode/pull/229\n[#772]: https://github.com/emacs-php/php-mode/pull/772\n[#774]: https://github.com/emacs-php/php-mode/issues/774\n[#775]: https://github.com/emacs-php/php-mode/pull/775\n[#776]: https://github.com/emacs-php/php-mode/discussions/776\n[#777]: https://github.com/emacs-php/php-mode/pull/777\n[#780]: https://github.com/emacs-php/php-mode/issues/780\n[#782]: https://github.com/emacs-php/php-mode/issues/782\n[#785]: https://github.com/emacs-php/php-mode/issues/785\n[#786]: https://github.com/emacs-php/php-mode/pull/786\n[@bricka]: https://github.com/bricka\n[emacs-php/php-ts-mode#68]: https://github.com/emacs-php/php-ts-mode/pull/68\n[PEAR Coding Standards]: https://pear.php.net/manual/en/standards.php\n\n## [1.26.0] - 2024-09-13\n\n> [!NOTE]\n> This version was cancelled due to a release error.\n\n## [1.25.1] - 2023-11-24\n\n### Added\n\n * Add `php-topsy-beginning-of-defun-with-class` to display classname with function signature. ([#766])\n * Add missing `__DIR__` to `php-magical-constants` ([#756], thanks [@piotrkwiecinski])\n\n### Changed\n\n * Make developer build task in Makefile now depends on Eask. ([#762], thanks [@jcs090218])\n   * This change does not affect package installation users\n   * Read [CONTRIBUTING.md] if you prefer to build it yourself from zip or tar ball\n\n### Fixed\n\n * Fixed build failure in Emacs on master branch ([#764], [#765], [#767], thanks [@takeokunn])\n\n### Removed\n\n * Removed Phan-specific features from `php-project` ([#754])\n * Removed [Cask](https://cask.readthedocs.io/) and [Keg](https://github.com/conao3/keg.el) metadata files for building ([#770])\n\n[#754]: https://github.com/emacs-php/php-mode/pull/754\n[#756]: https://github.com/emacs-php/php-mode/pull/756\n[#762]: https://github.com/emacs-php/php-mode/pull/762\n[#764]: https://github.com/emacs-php/php-mode/issues/764\n[#765]: https://github.com/emacs-php/php-mode/pull/765\n[#766]: https://github.com/emacs-php/php-mode/pull/766\n[#767]: https://github.com/emacs-php/php-mode/pull/767\n[#770]: https://github.com/emacs-php/php-mode/pull/770\n[@jcs090218]: https://github.com/jcs090218\n[@piotrkwiecinski]: https://github.com/piotrkwiecinski\n[@takeokunn]: https://github.com/takeokunn\n[CONTRIBUTING.md]: https://github.com/emacs-php/php-mode/blob/master/CONTRIBUTING.md\n\n## [1.25.0] - 2023-07-24\n\n### Added\n\n * **Support Emacs 29.1** ([#743], [#750])\n\n### Fixed\n\n * Fixed many byte compilation errors on Emacs 29 and 30 by multiple patches contributed by [Stefan Monnier] ([#737], [#739] and [#740], thanks Stefan!)\n * Fixed PEAR method chaining wrong indentation ([#745] and [#746], thanks [@cweiske]!)\n * Fixed `php-mode-debug-reinstall` command ([#747], [#748])\n\n### Removed\n\n * Drop Emacs 25 support ([#729], [736])\n\n[Stefan Monnier]: https://www.iro.umontreal.ca/~monnier/\n[#729]: https://github.com/emacs-php/php-mode/pull/729\n[#736]: https://github.com/emacs-php/php-mode/pull/736\n[#737]: https://github.com/emacs-php/php-mode/pull/737\n[#739]: https://github.com/emacs-php/php-mode/pull/739\n[#740]: https://github.com/emacs-php/php-mode/pull/740\n[#741]: https://github.com/emacs-php/php-mode/pull/741\n[#743]: https://github.com/emacs-php/php-mode/pull/743\n[#745]: https://github.com/emacs-php/php-mode/pull/745\n[#746]: https://github.com/emacs-php/php-mode/pull/746\n[#747]: https://github.com/emacs-php/php-mode/pull/747\n[#748]: https://github.com/emacs-php/php-mode/pull/748\n[#750]: https://github.com/emacs-php/php-mode/pull/750\n\n## [1.24.3] - 2023-03-19\n\n### Added\n\n * **Net feature**: `php-format` ([#731])\n   * Add `php-format-project` and `php-format-this-buffer-file` commands\n   * Add `php-format-auto-mode` minor mode\n * **Experimental feature: `php-ide`** ([#709])\n   * Add `php-ide-phpactor` as simple IDE feature without LSP clients\n   * Add `php-ide-mode` minor mode for binding IDE-like features\n\n### Fixed\n\n * Fix array indentation broken by commenting out ([#726], [#732])\n\n### Removed\n\n * No longer highlights `'link` in PHPDoc ([#724])\n   * Please use `goto-address-prog-mode` minor mode\n\n[#709]: https://github.com/emacs-php/php-mode/pull/709\n[#724]: https://github.com/emacs-php/php-mode/pull/724\n[#726]: https://github.com/emacs-php/php-mode/pull/726\n[#731]: https://github.com/emacs-php/php-mode/pull/731\n[#732]: https://github.com/emacs-php/php-mode/pull/732\n\n## [1.24.2] - 2022-11-13\n\n### Added\n\n * **New feature: `php-complete`**\n   * Add `php-complete-complete-function` to autocomplete function names ([#708])\n * **New feature: `php-flymake`**\n   * Add `php-flymake` as a flymake backend compatible with Emacs 26 and above ([#718])\n * Supports PHPDoc tags and types for static analysis tools ([#710], [#715], [#716], [#717], thanks to [@takeokunn])\n     * Please refer to the article below\n       * PHPStan: [PHPDoc Types](https://phpstan.org/writing-php-code/phpdoc-types)\n       * PHPStan: [PHPDocs Basics](https://phpstan.org/writing-php-code/phpdocs-basics)\n       * Psalm: [Atomic Type Reference](https://psalm.dev/docs/annotating_code/type_syntax/atomic_types/)\n       * Psalm: [Supported Annotations](https://psalm.dev/docs/annotating_code/supported_annotations/)\n       * Psalm: [Template Annotations](https://psalm.dev/docs/annotating_code/templated_annotations/)\n * Add `php-mode-replace-flymake-diag-function` custom variable and default activated it ([#718])\n * Add `php-mode-debug-reinstall` command to help users who update Emacs themselves ([#721])\n\n### Changed\n\n * Make continued expressions inside lists (arguments and arrays, etc.) have the same indent width as outside the list ([#703])\n * (internal) Improved readability of test failures about indentation ([#707])\n * `php-doc-annotation-tag` inherits `font-lock-doc-markup-face` if defined in Emacs 28 ([#711])\n * Make `php-mode-version` function include a Git tag and revision ([#713])\n   * Like `\"1.23.4-56-xxxxxx\"` for example.\n * Change `php-phpdoc-type-keywords` to `php-phpdoc-type-names` to avoid confusion ([#717])\n * Make `php-flymake-php-init` append to `flymake-allowed-file-name-masks` only in legacy Flymake ([#718])\n\n### Deprecated\n\n * Make obsolete `php-mode-version-number` contstant variable ([#712])\n   * `(php-mode-version :as-number t)` is provided for use cases comparing as versions, but generally SHOULD NOT be dependent on the PHP Mode version.\n * Make obsolete `php-mode-disable-c-mode-hook` customize variable ([#718])\n\n### Removed\n\n * Remove `php-mode-disable-c-auto-align-backslashes` as it doesn't make sense and is always disabled\n\n### Fixed\n\n * Removed invalid definitions that caused errors in some expressions ([#704])\n\n[#703]: https://github.com/emacs-php/php-mode/pull/703\n[#704]: https://github.com/emacs-php/php-mode/pull/704\n[#707]: https://github.com/emacs-php/php-mode/pull/707\n[#708]: https://github.com/emacs-php/php-mode/pull/708\n[#710]: https://github.com/emacs-php/php-mode/pull/710\n[#711]: https://github.com/emacs-php/php-mode/pull/711\n[#713]: https://github.com/emacs-php/php-mode/pull/713\n[#715]: https://github.com/emacs-php/php-mode/pull/715\n[#716]: https://github.com/emacs-php/php-mode/pull/716\n[#717]: https://github.com/emacs-php/php-mode/pull/717\n[#718]: https://github.com/emacs-php/php-mode/pull/718\n[#719]: https://github.com/emacs-php/php-mode/pull/719\n[#721]: https://github.com/emacs-php/php-mode/pull/721\n\n## [1.24.1] - 2022-10-08\n\n### Added\n\n * Support new PHP 8.0 and 8.1 syntax highlighting and indentation\n    * [8.0] `#[Attributes]`\n    * [8.1] `readonly` property ([#680])\n * Add `php-imenu-generic-expression-default` for default value or `php-imenu-generic-expression`\n   * Add `php-imenu-generic-expression-legacy` for compatibility\n   * Add `php-imenu-generic-expression-simple` for simple display\n * Add `php-project-project-find-function` compatible with `project-find-functions` ([#693])\n\n### Changed\n\n * Optimized propertize process ([#669])\n   * Reimoplement `php-syntax-propertize-function` using `syntax-propertize-rules`\n   * Make propertize PHP 8 `#[Attribute]` always enabled\n   * Changed grouping of `php-heredoc-start-re`\n * Re-organized `php-imenu-generic-expression`\n   * Added `Import`, `Constants` and `Properties`\n   * Removed `Anonymous Functions`\n   * Renamed `Named Functions` to `Functions`\n   * Renamed `All Methods` to `Methods`\n   * Removed `Public Methods`, `Protected Methods` and `Provate Methods`\n   * Unified `Classes`, `Traits`, `Interfaces` into `Classes`\n * Modified regexp patterns ([#681])\n * Suppress compile-time warnings ([#683], [#690], [#697])\n\n### Fixed\n\n * Fix `php-run-builtin-web-server` to expand root path (#699)\n\n[#669]: https://github.com/emacs-php/php-mode/pull/669\n[#680]: https://github.com/emacs-php/php-mode/pull/680\n[#681]: https://github.com/emacs-php/php-mode/pull/681\n[#683]: https://github.com/emacs-php/php-mode/pull/683\n[#690]: https://github.com/emacs-php/php-mode/pull/690\n[#693]: https://github.com/emacs-php/php-mode/pull/693\n[#697]: https://github.com/emacs-php/php-mode/pull/697\n[#699]: https://github.com/emacs-php/php-mode/pull/699\n\n## [1.24.0] - 2021-03-07\n\n### Added\n\n * Support new PHP 8.0 and 8.1 syntax hilighting and indentation\n   * [8.0] `match` expression ([#632])\n   * [8.0] `mixed` pseudo type declaration ([#633])\n   * [8.1] `enum` statement ([#653])\n\n### Changed\n\n * Drop support for Emacs 24 and 25.1 ([#654])\n * Raises an error when the byte-compiled Cc Mode version does not match that version at runtime.\n   * You will need to recompile php-mode after the GNU Emacs version changes.\n\n## Removed\n\n * Remove `(require 'add-log)`\n\n### Fixed\n\n * Fix font-lock highlighting\n   * `!=` ([#630])\n * Fix Heredoc and Nowdoc highlighting ([#651] thanks [@antoineB])\n * Fix documentation mistake\n   * `php-mode-lineup-cascaded-calls` in README.md ([#644] thanks [@cweiske]!)\n\n[#630]: https://github.com/emacs-php/php-mode/pull/630\n[#632]: https://github.com/emacs-php/php-mode/pull/632\n[#633]: https://github.com/emacs-php/php-mode/pull/633\n[#644]: https://github.com/emacs-php/php-mode/pull/644\n[#651]: https://github.com/emacs-php/php-mode/pull/651\n[#653]: https://github.com/emacs-php/php-mode/pull/653\n[#654]: https://github.com/emacs-php/php-mode/pull/654\n[@antoineB]: https://github.com/antoineB\n[@cweiske]: https://github.com/cweiske\n\n## [1.23.0] - 2020-05-06\n\nInitial support for PHP 8 has been added.  PHP Mode has some issues for compatibility with Emacs 27.0.\n\nThe list of all past contributors has been moved to [`AUTHORS.md`](/AUTHORS.md).\n\nThis release is positioned as the last minor version of the PHP Mode 1.x series.\n\n### Added\n\n * Add `php-project-use-projectile-to-detect-root` ([#608])\n * Add PHP file extensions to `auto-mode-alist` ([#609])\n   * `.php.inc` is file extension for [Rector](https://github.com/rectorphp/rector)'s test code.\n   * `.stub` is file extension for [PHPStan](https://github.com/phpstan/phpstan)'s stub file.\n * Add `php-mode-disable-c-auto-align-backslashes` ([#621])\n * Add PHP 8.0 Attribute syntax as vsemi ([#626])\n * Add feature `php-align` from [tetsujin/emacs-php-align] ([#615], [melpa/melpa#6759])\n\n### Changed\n\n * Disable `c-auto-align-backslashes` by default. ([#621])\n * Add new faces and font locking ([#611], [#614])\n\n### Removed\n\n * Remove `php-mode-extra-constants` variable and function. ([#605])\n   * This mechanism is for synchronizing the added user-defined constants with WebMode, but it hasn't worked since 2014.\n\n### Fixed\n\n * Fix indentation of object operator (->) at the beginning of line ([#623], [#624])\n\n[#605]: https://github.com/emacs-php/php-mode/pull/605\n[#608]: https://github.com/emacs-php/php-mode/pull/608\n[#609]: https://github.com/emacs-php/php-mode/pull/609\n[#611]: https://github.com/emacs-php/php-mode/pull/611\n[#614]: https://github.com/emacs-php/php-mode/pull/614\n[#615]: https://github.com/emacs-php/php-mode/pull/615\n[#621]: https://github.com/emacs-php/php-mode/pull/621\n[#623]: https://github.com/emacs-php/php-mode/issues/623\n[#624]: https://github.com/emacs-php/php-mode/pull/624\n[melpa/melpa#6759]: https://github.com/melpa/melpa/pull/6759\n[tetsujin/emacs-php-align]: https://github.com/tetsujin/emacs-php-align\n\n## [1.22.2] - 2019-12-23\n\nA face has been added for coloring PHP syntax. Thank you [@minikN]!\n\nThis release is a minor modified version of the 1.22.x series.\nPHP Mode 2.0 is planned to be released in January 2020.\n\n### Added\n\n * Add `php-project-etags-file` and `php-project-apply-local-variables` ([#591])\n * Add `php-find-system-php-ini-file` and `php-ini` command ([#593])\n\n### Changed\n\n * Improve PHP syntax highlighting (by [@minikN])\n   * Add support for multiple operators ([#594])\n   * Add `=>` to assignment operators ([#602], [#603])\n * Plain faces no longer inherit `default` ([#597])\n\n### Removed\n\n * Remove `php-mode-modified` variable ([#590])\n\n### Fixed\n\n * Fix anonymous class indentation ([#598])\n\n[@minikN]: https://github.com/minikN\n[#590]: https://github.com/emacs-php/php-mode/pull/590\n[#591]: https://github.com/emacs-php/php-mode/pull/591\n[#593]: https://github.com/emacs-php/php-mode/pull/593\n[#594]: https://github.com/emacs-php/php-mode/pull/594\n[#597]: https://github.com/emacs-php/php-mode/pull/597\n[#598]: https://github.com/emacs-php/php-mode/pull/598\n[#602]: https://github.com/emacs-php/php-mode/pull/602\n[#603]: https://github.com/emacs-php/php-mode/pull/603\n\n## [1.22.1] - 2019-11-10\n\nThis release is a minor modified version of the 1.22.x series.\nPHP Mode 2.0 is planned to be released in January 2020.\n\n### Fixed\n\n * Fix usas of `rx-form` ([#580], thank you [@cmack])\n * Fix `php-mode-coding-style` custom variable ([#581])\n * Fix unexpected indentation of (return typed) closures written in arguments ([#585])\n\n[@cmack]: https://github.com/cmack\n[#580]: https://github.com/emacs-php/php-mode/pull/580\n[#581]: https://github.com/emacs-php/php-mode/pull/581\n[#585]: https://github.com/emacs-php/php-mode/pull/585\n\n## [1.22.0] - 2019-09-27\n\n~~This release is positioned as the last minor version of the PHP Mode 1.x series.~~\nPHP Mode 2.0 is planned to be released in January 2020.\n\n### Added\n\n * Improve PHP 7 and PHPDoc support\n   * Highlighting typed property ([#545])\n   * Highlighting `{@inheritdoc}` tag ([#566])\n   * Highlighting  multiple `catch`  ([#567])\n * Add new `php-class` face ([#545])\n * Add new `php-run-builtin-web-server` command for invoke `php -S` buitin server ([#548])\n * Add new `php-copyit-fqsen` command for kill current method FQSEN ([#561])\n * Apply lineup cascaded call (method chain separated by new line) for all styles ([#563], [#572])\n\n### Changed\n\n * Loose HTML template detection algorithm ([#558])\n * Move php-mode-test.el into tests directory ([#559])\n   * `php-mode-autoloads.el` no longer includes `php-mode-test`\n * Modify syntax-entry `$` to `\"_\"` from `\"'\"` ([#565])\n * Make `php-set-style` display only styles that inherited \"php\" ([#573])\n\n### Fixed\n\n * Fix default major mode for `*.phpt` file as `php-default-major-mode` ([#542])\n * prevent recursion in `php-syntax-propertize-extend-region` ([$556], thanks [Herbert Jones][@herbertjones])\n * Fix call `run-hooks` in `set-style` ([#571])\n\n[#542]: https://github.com/emacs-php/php-mode/pull/542\n[#545]: https://github.com/emacs-php/php-mode/pull/545\n[#548]: https://github.com/emacs-php/php-mode/pull/548\n[#556]: https://github.com/emacs-php/php-mode/pull/556\n[#558]: https://github.com/emacs-php/php-mode/pull/558\n[#559]: https://github.com/emacs-php/php-mode/pull/559\n[#561]: https://github.com/emacs-php/php-mode/pull/561\n[#563]: https://github.com/emacs-php/php-mode/issues/563\n[#565]: https://github.com/emacs-php/php-mode/pull/565\n[#566]: https://github.com/emacs-php/php-mode/pull/566\n[#567]: https://github.com/emacs-php/php-mode/pull/567\n[#571]: https://github.com/emacs-php/php-mode/pull/571\n[#572]: https://github.com/emacs-php/php-mode/pull/572\n[#572]: https://github.com/emacs-php/php-mode/pull/572\n[#573]: https://github.com/emacs-php/php-mode/pull/573\n[#556]: https://github.com/emacs-php/php-mode/pull/556\n[@herbertjones]: https://github.com/herbertjones\n\n## [1.21.4] - 2019-05-29\n\nThis version contains unobtrusive changes for future compatibility. Also, `forward-page` /` backward-page` may improve your operation. Thank you [@takeokunn].\n\n### Added\n\n * A new command `php-mode-maybe` has been added to improve the compatibility of Blade templates and HTML templates with Web Mode. ([#532])\n * A new custom variable php-mode-page-delimiter is added, which is assigned to page-delimiter in PHP-Mode. It allows you to move smoothly to the previous and subsequent definition statements with `forward-page` (<kbd>C-x C-[</kbd>) and `backward-page` (<kbd>C-x C-]</kbd>). ([#540] by [@takeokunn])\n\n### Changed\n\n * `php-maybe-mode` and `.php` files are associated with `auto-mode-alist` instead of `php-mode` ([#532])\n * Compatibility with [poly-php] has been improved. This has not yet been officially released.\n\n### Deprecated\n\n * PHP Mode does not support phpt files . Consider installing the [phpt-mode] package. This mode is a wrapper around Polymode based PHP-Mode.\n\n[#532]: https://github.com/emacs-php/php-mode/pull/532\n[#539]: https://github.com/emacs-php/php-mode/pull/539\n[#540]: https://github.com/emacs-php/php-mode/pull/540\n[@takeokunn]: https://github.com/takeokunn\n\n## [1.21.3] - 2019-05-25\n\nThis version includes both PHP syntax support enhancements and performance improvements. See https://github.com/emacs-php/php-mode/projects/1 for all issues for this release.  Also, [@mallt] has helped me improve it with a number of issues. thank you very much.\n\n### Added\n\n * Added new Faces to display PHP syntax\n   * `php-constant-assign`\n   * `php-magical-constant`\n   * `php-errorcontrol-op`\n * Some funtions have been split into features such as `php.el`, `php-face.el` and `php-mode-debug.el`.\n\n### Fixed\n\n * Improved performance when opening large files ([#491], [#531])\n\n[#491]: https://github.com/emacs-php/php-mode/issues/491\n[#531]: https://github.com/emacs-php/php-mode/pull/531\n\n### Changed\n\n * Syntax highlighting has been adjusted\n\n### Removed\n\n * `php-ext` and Skeleton templates have been split into [php-skeleton] ([#534])\n\n[php-skeleton]: https://github.com/emacs-php/php-skeleton\n[#534]: https://github.com/emacs-php/php-mode/pull/534\n\n## [1.21.2] - 2019-05-11\n\nIt officially supports **PHP 7.3** and **Emacs 26.2**.\nMany improvements have been received from [@sergeyklay], thank you!\n\n### Added\n\n * Highlighting added `fn` keyword supported by [PHP 7.2 arrow function] ([#506])\n\n### Fixed\n\n * Function `php-beginning-of-defun` should return non-nil on success ([#503])\n * Fixed an error that occurred in some heredoc/nowdoc ([#496])\n\n### Changed\n\n * Support PHP 7.3 heredoc/nowdoc ([#496])\n * Minor optimization of font-lock regular expression ([#510])\n\n## [1.21.1] - 2019-04-01\n\n### Changed\n\n * Fixed an error that occurred in Emacs 27\n * Modify URL of PHP web site\n * Fix highlighting of static method calls\n\n## [1.21.0] - 2019-01-09\n\nA minor change from the previous version, but this version has BC brake about `c-mode-hook`.\n\n### Added\n\n * Add `php` customize group.\n   * This group is positioned above `php-mode`.\n   * This group was originally planned to be included in v1.20.0.\n * Add `php-mode-disable-c-mode-hook` custom variable.\n   * Setting this variable to `nil` will restore the behavior of `c-mode-hook` up to the previous version.\n\n### Changed\n\n * `php-mode` initialization no longer executes hooks for `c-mode`.\n   *  If you want to return to the same behavior as the conventional PHP-Mode, set `nil` to `php-mode-disable-c-mode-hook`.\n\n## [1.20.0] - 2018-12-07\n\nStart preparing for major refactoring in major mode.\n\n### Added\n\n * Add php-project variables for workflow ([#488](https://github.com/emacs-php/php-mode/pull/488))\n    * The following variables are reserved as file/directory local variables.\n      * `php-project-repl`\n      * `php-project-unit-test`\n      * `php-project-deploy`\n      * `php-project-build`\n      * `php-project-server-start`\n\n### Changed\n\n * Improve code highlight\n    * Fix highlighting of callable keyword ([#471](https://github.com/emacs-php/php-mode/pull/471) by [@fabacino])\n    * Highlight the `?` character for nullable type hints and return types ([#482](https://github.com/emacs-php/php-mode/pull/482) by [@fabacino])\n * Modify \"customize group\" and variable names\n    * Add php-mode group and some variables belong to new group ([#486](https://github.com/emacs-php/php-mode/pull/486))\n      * `php-default-face` → `php-mode-default-face`\n      * `php-speedbar-config` → `'php-mode-speedbar-config`\n      * `php-template-compatibility` → `php-mode-template-compatibility`\n      * `php-lineup-cascaded-calls` → `php-mode-lineup-cascaded-calls`\n      * `php-extra-constants` → `php-mode-extra-constants`\n      * `php-do-not-use-semantic-imenu` → `php-mode-do-not-use-semantic-imenu`\n * Modify documents and copyright\n    * Move the URL of Website to https://github.com/emacs-php/php-mode\n    * Add copyright notation about [Friends of Emacs-PHP development](https://github.com/emacs-php)\n    * Add a \"Hall of Fame\" to the contributors list ([#481](https://github.com/emacs-php/php-mode/pull/481) by [@ejmr] and thanks [@sergey48k](https://github.com/sergey48k) and [@sourcerer-io](https://github.com/sourcerer-io) project)\n * Some refactors\n    * Fix style and suppress warning in compile [#485](https://github.com/emacs-php/php-mode/pull/485)\n\n<!--\n * Divide `php-mode.el` into `php.el` and `php-helper.el` for refactor\n   *  With this change, we provide simple functions to other packages without loading `php-mode`.\n-->\n\n## [1.19.1] - 2018-05-12\n\n### Added\n\n * Add some functions/variables in `php-project` package\n    * `php-project-get-php-executable` ([#436](https://github.com/emacs-php/php-mode/pull/436))\n    * `php-project-get-phan-executable` ([#436](https://github.com/emacs-php/php-mode/pull/436))\n * Add `php-debug` command for reporting a bug\n\n### Changed\n\n * Add highlighting of return types for abstract functions ([#461](https://github.com/emacs-php/php-mode/pull/461) by [@fabacino](https://github.com/fabacino))\n\n### Fixed\n\n * Fix `c-anchored-cpp-prefix` in Emacs 26 ([#453](https://github.com/emacs-php/php-mode/pull/453))\n * Fix (re-implemteed) `php-complete-function` ([#454](https://github.com/emacs-php/php-mode/pull/454))\n * Fix some problem of `php-set-style` *(disabled on default)*\n   * Fix lazy evaluation of php-set-style ([#444](https://github.com/emacs-php/php-mode/pull/444))\n   * Do not use `php-mode-enable-backup-style-variables` in initialize ([#452](https://github.com/emacs-php/php-mode/pull/452))\n   * Temporarily disable `php-mode-enable-project-coding-style`  ([#450](https://github.com/emacs-php/php-mode/pull/450))\n * Fix heredoc/nowdoc syntax problem ([#440](https://github.com/emacs-php/php-mode/pull/440))\n * Delete duplicate font locks with keywords not related to PHP language ([#432](https://github.com/emacs-php/php-mode/pull/432))\n * Make `php-project-root` variable accept a string ([#458](https://github.com/emacs-php/php-mode/pull/458))\n\n## Before 1.19.0\n\nSee [Changelog · emacs-php/php-mode Wiki](https://github.com/emacs-php/php-mode/wiki/Changelog).\n\n[#496]: https://github.com/emacs-php/php-mode/pull/496\n[#503]: https://github.com/emacs-php/php-mode/issues/503\n[#506]: https://github.com/emacs-php/php-mode/issues/506\n[#510]: https://github.com/emacs-php/php-mode/pull/510\n[@ejmr]: https://github.com/ejmr\n[@fabacino]: https://github.com/fabacino\n[@mallt]: https://github.com/mallt\n[@sergeyklay]: https://github.com/sergeyklay\n[PHP 7.2 arrow function]: https://wiki.php.net/rfc/arrow_functions_v2\n[poly-php]: https://github.com/emacs-php/poly-php\n[phpt-mode]: https://github.com/emacs-php/phpt-mode\n"
  },
  {
    "path": "CONTRIBUTING.md",
    "content": "# How to Contribute\n\nThis project accepts contributions in various languages.  Not only development but also documentation and translation are important contributions.\n\n * [English](#english) `[en]`\n * [简体中文](#simplified-chinese) `[zh-Hans]`\n * [繁体中文](#traditional-chinese) `[zh-Hant]`\n * [日本語](#japanese) `[ja]`\n\n----------\n\n## English\n\n### Setup (en)\n\n[Eask] is required to build the package. You need to install it using node.js and npm, or [download a prebuilt executable][eask-releases]. See [Eask Introduction][eask-introduction] and [Install Eask][eask-install] for more details.\n\nYou can run the tests using the following command:\n\n```sh\nmake test\n```\n\n### Guideline (en)\n\nAll contributions to PHP Mode are welcome.  But please try to do the following when submitting enhancements or bug fixes:\n\n 1. Open `php-mode-test.el` and run all the tests to make sure they pass as expected.  You can also check this by running `make test` from the terminal.\n 2. Please commit with a concise and clear message that effectively achieves a simple purpose.\n 3. Submit a pull request here on GitHub.\n\nIf you are fixing a bug related to a GitHub issue, then first of all, thank you for helping to improve PHP Mode.  Second, there is a `tests/` directory that contains PHP scripts for issues (though not all).  Please consider adding a test script to that directory that documents the expected behavior and provides code that allows others to see if that behavior works properly.  Then create a unit test within `php-mode-test.el' using [ERT]. Try to follow the format of the existing tests.\n\n### Regression test for Face (en)\n\nIn this project, the regression test of [Font Lock] is realized by creating a `foo.php.face` file to be paired with the` foo.php` file. Add the `: faces t` option to the` with-php-mode-test` argument to activate this test.\n\nPlease refer to [How to generate face file] for how to generate `.face` file required for this test.\n\n----------\n\n## Simplified Chinese\n\nI am seeking a contribution on Chinese.  We also lack a README written in Simplified Chinese.\n\n### Guideline (zh-Hans)\n\nPlease contribute.\n\n----------\n\n## Traditional Chinese\n\nI am seeking a contribution on Chinese.  We also lack a README written in Traditional Chinese.\n\n### Guideline (zh-Hant)\n\nPlease contribute.\n\n----------\n\n## Japanese\n\n### Setup (ja)\n\nパッケージをビルドするにはEaskが必要です。node.jsとnpmからインストールするか、ビルド済み実行ファイルをダウンロードする必要があります。Easkの詳細は[Eask Introduction][eask-introduction]と[Install Eask][eask-install]をお読みください。\n\n以下のコマンドでテストを実行できます。\n\n```sh\nmake test\n```\n\n### Guideline (ja)\n\n**Emacs PHP Mode**はどなたからの貢献も歓迎です。改善やバグ修正を行う前に以下の手順を行ってください。\n\n 1. `php-mode-test.el`を開いて[すべてのテストを実行][run all of the tests]し、期待通りにテストを通過することを確認します。端末から`make test`で確認することもできます。\n 2. 簡潔でシンプルな目的を達成するための、明示的なメッセージでコミットしてください。\n 3. GitHubからプルリクエストを送信してください。\n\n**GitHubのissueに関連するバグを修正する場合**： PHPモードの改善に協力いただきありがとうございます！ `tests/`ディレクトリには(すべてではありませんが)issueに関連のあるPHPスクリプトが配置されています。そこに予期される挙動と他のひとが動作を適切に確認できるテストコードを追加することを検討してください。そして`php-mode-test.el`に既存のテストと同じように[ERT]を使ったテストコードを追加してください。\n\n### Regression test for Face (ja)\n\nこのプロジェクトでは `foo.php` ファイルに対応した `foo.php.face` ファイルを作成することで[Font Lock]の回帰テストを実現しています。このテストを有効化するには`with-php-mode-test`の引数に`:faces t`オプションを追加してください。\n\nこのテストに必要な`.face`ファイルの生成方法は[How to generate face file]を参考にしてください。\n\n[run all of the tests]: http://www.gnu.org/software/emacs/manual/html_node/ert/Running-Tests-Interactively.html#Running-Tests-Interactively\n[Eask]: https://emacs-eask.github.io/\n[eask-introduction]: https://emacs-eask.github.io/Getting-Started/Introduction/\n[eask-install]: https://emacs-eask.github.io/Getting-Started/Install-Eask/\n[eask-releases]: https://github.com/emacs-eask/cli/releases\n[ERT]: http://www.gnu.org/software/emacs/manual/html_node/ert/index.html\n[Font Lock]: https://www.gnu.org/software/emacs/manual/html_node/elisp/Font-Lock-Mode.html\n[How to generate face file]: https://github.com/emacs-php/php-mode/issues/509#issuecomment-491528968\n"
  },
  {
    "path": "Eask",
    "content": ";; -*- mode: eask; lexical-binding: t -*-\n\n(package \"php-mode\"\n         \"1.26.1\"\n         \"Major mode for editing PHP code\")\n\n(website-url \"https://github.com/emacs-php/php-mode\")\n(keywords \"languages\" \"php\")\n\n(package-file \"lisp/php-mode.el\")\n(files\n \"lisp/php.el\"\n \"lisp/php-complete.el\"\n \"lisp/php-defs.el\"\n \"lisp/php-face.el\"\n \"lisp/php-format.el\"\n \"lisp/php-project.el\"\n \"lisp/php-local-manual.el\"\n \"lisp/php-ide-phpactor.el\"\n \"lisp/php-ide.el\"\n \"lisp/php-mode-debug.el\")\n\n(script \"test\" \"echo \\\"Error: no test specified\\\" && exit 1\")\n\n(source 'melpa)\n(source 'gnu)\n\n(depends-on \"emacs\" \"27.1\")\n\n(development\n (depends-on \"phpactor\")\n (depends-on \"pkg-info\")\n (depends-on \"projectile\")\n (depends-on \"smart-jump\")\n (depends-on \"shut-up\")\n )\n\n(setq network-security-level 'low)  ; see https://github.com/jcs090218/setup-emacs-windows/issues/156#issuecomment-932956432\n"
  },
  {
    "path": "LICENSE",
    "content": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>\n Everyone is permitted to copy and distribute verbatim copies\n of this license document, but changing it is not allowed.\n\n                            Preamble\n\n  The GNU General Public License is a free, copyleft license for\nsoftware and other kinds of works.\n\n  The licenses for most software and other practical works are designed\nto take away your freedom to share and change the works.  By contrast,\nthe GNU General Public License is intended to guarantee your freedom to\nshare and change all versions of a program--to make sure it remains free\nsoftware for all its users.  We, the Free Software Foundation, use the\nGNU General Public License for most of our software; it applies also to\nany other work released this way by its authors.  You can apply it to\nyour programs, too.\n\n  When we speak of free software, we are referring to freedom, not\nprice.  Our General Public Licenses are designed to make sure that you\nhave the freedom to distribute copies of free software (and charge for\nthem if you wish), that you receive source code or can get it if you\nwant it, that you can change the software or use pieces of it in new\nfree programs, and that you know you can do these things.\n\n  To protect your rights, we need to prevent others from denying you\nthese rights or asking you to surrender the rights.  Therefore, you have\ncertain responsibilities if you distribute copies of the software, or if\nyou modify it: responsibilities to respect the freedom of others.\n\n  For example, if you distribute copies of such a program, whether\ngratis or for a fee, you must pass on to the recipients the same\nfreedoms that you received.  You must make sure that they, too, receive\nor can get the source code.  And you must show them these terms so they\nknow their rights.\n\n  Developers that use the GNU GPL protect your rights with two steps:\n(1) assert copyright on the software, and (2) offer you this License\ngiving you legal permission to copy, distribute and/or modify it.\n\n  For the developers' and authors' protection, the GPL clearly explains\nthat there is no warranty for this free software.  For both users' and\nauthors' sake, the GPL requires that modified versions be marked as\nchanged, so that their problems will not be attributed erroneously to\nauthors of previous versions.\n\n  Some devices are designed to deny users access to install or run\nmodified versions of the software inside them, although the manufacturer\ncan do so.  This is fundamentally incompatible with the aim of\nprotecting users' freedom to change the software.  The systematic\npattern of such abuse occurs in the area of products for individuals to\nuse, which is precisely where it is most unacceptable.  Therefore, we\nhave designed this version of the GPL to prohibit the practice for those\nproducts.  If such problems arise substantially in other domains, we\nstand ready to extend this provision to those domains in future versions\nof the GPL, as needed to protect the freedom of users.\n\n  Finally, every program is threatened constantly by software patents.\nStates should not allow patents to restrict development and use of\nsoftware on general-purpose computers, but in those that do, we wish to\navoid the special danger that patents applied to a free program could\nmake it effectively proprietary.  To prevent this, the GPL assures that\npatents cannot be used to render the program non-free.\n\n  The precise terms and conditions for copying, distribution and\nmodification follow.\n\n                       TERMS AND CONDITIONS\n\n  0. Definitions.\n\n  \"This License\" refers to version 3 of the GNU General Public License.\n\n  \"Copyright\" also means copyright-like laws that apply to other kinds of\nworks, such as semiconductor masks.\n\n  \"The Program\" refers to any copyrightable work licensed under this\nLicense.  Each licensee is addressed as \"you\".  \"Licensees\" and\n\"recipients\" may be individuals or organizations.\n\n  To \"modify\" a work means to copy from or adapt all or part of the work\nin a fashion requiring copyright permission, other than the making of an\nexact copy.  The resulting work is called a \"modified version\" of the\nearlier work or a work \"based on\" the earlier work.\n\n  A \"covered work\" means either the unmodified Program or a work based\non the Program.\n\n  To \"propagate\" a work means to do anything with it that, without\npermission, would make you directly or secondarily liable for\ninfringement under applicable copyright law, except executing it on a\ncomputer or modifying a private copy.  Propagation includes copying,\ndistribution (with or without modification), making available to the\npublic, and in some countries other activities as well.\n\n  To \"convey\" a work means any kind of propagation that enables other\nparties to make or receive copies.  Mere interaction with a user through\na computer network, with no transfer of a copy, is not conveying.\n\n  An interactive user interface displays \"Appropriate Legal Notices\"\nto the extent that it includes a convenient and prominently visible\nfeature that (1) displays an appropriate copyright notice, and (2)\ntells the user that there is no warranty for the work (except to the\nextent that warranties are provided), that licensees may convey the\nwork under this License, and how to view a copy of this License.  If\nthe interface presents a list of user commands or options, such as a\nmenu, a prominent item in the list meets this criterion.\n\n  1. Source Code.\n\n  The \"source code\" for a work means the preferred form of the work\nfor making modifications to it.  \"Object code\" means any non-source\nform of a work.\n\n  A \"Standard Interface\" means an interface that either is an official\nstandard defined by a recognized standards body, or, in the case of\ninterfaces specified for a particular programming language, one that\nis widely used among developers working in that language.\n\n  The \"System Libraries\" of an executable work include anything, other\nthan the work as a whole, that (a) is included in the normal form of\npackaging a Major Component, but which is not part of that Major\nComponent, and (b) serves only to enable use of the work with that\nMajor Component, or to implement a Standard Interface for which an\nimplementation is available to the public in source code form.  A\n\"Major Component\", in this context, means a major essential component\n(kernel, window system, and so on) of the specific operating system\n(if any) on which the executable work runs, or a compiler used to\nproduce the work, or an object code interpreter used to run it.\n\n  The \"Corresponding Source\" for a work in object code form means all\nthe source code needed to generate, install, and (for an executable\nwork) run the object code and to modify the work, including scripts to\ncontrol those activities.  However, it does not include the work's\nSystem Libraries, or general-purpose tools or generally available free\nprograms which are used unmodified in performing those activities but\nwhich are not part of the work.  For example, Corresponding Source\nincludes interface definition files associated with source files for\nthe work, and the source code for shared libraries and dynamically\nlinked subprograms that the work is specifically designed to require,\nsuch as by intimate data communication or control flow between those\nsubprograms and other parts of the work.\n\n  The Corresponding Source need not include anything that users\ncan regenerate automatically from other parts of the Corresponding\nSource.\n\n  The Corresponding Source for a work in source code form is that\nsame work.\n\n  2. Basic Permissions.\n\n  All rights granted under this License are granted for the term of\ncopyright on the Program, and are irrevocable provided the stated\nconditions are met.  This License explicitly affirms your unlimited\npermission to run the unmodified Program.  The output from running a\ncovered work is covered by this License only if the output, given its\ncontent, constitutes a covered work.  This License acknowledges your\nrights of fair use or other equivalent, as provided by copyright law.\n\n  You may make, run and propagate covered works that you do not\nconvey, without conditions so long as your license otherwise remains\nin force.  You may convey covered works to others for the sole purpose\nof having them make modifications exclusively for you, or provide you\nwith facilities for running those works, provided that you comply with\nthe terms of this License in conveying all material for which you do\nnot control copyright.  Those thus making or running the covered works\nfor you must do so exclusively on your behalf, under your direction\nand control, on terms that prohibit them from making any copies of\nyour copyrighted material outside their relationship with you.\n\n  Conveying under any other circumstances is permitted solely under\nthe conditions stated below.  Sublicensing is not allowed; section 10\nmakes it unnecessary.\n\n  3. Protecting Users' Legal Rights From Anti-Circumvention Law.\n\n  No covered work shall be deemed part of an effective technological\nmeasure under any applicable law fulfilling obligations under article\n11 of the WIPO copyright treaty adopted on 20 December 1996, or\nsimilar laws prohibiting or restricting circumvention of such\nmeasures.\n\n  When you convey a covered work, you waive any legal power to forbid\ncircumvention of technological measures to the extent such circumvention\nis effected by exercising rights under this License with respect to\nthe covered work, and you disclaim any intention to limit operation or\nmodification of the work as a means of enforcing, against the work's\nusers, your or third parties' legal rights to forbid circumvention of\ntechnological measures.\n\n  4. Conveying Verbatim Copies.\n\n  You may convey verbatim copies of the Program's source code as you\nreceive it, in any medium, provided that you conspicuously and\nappropriately publish on each copy an appropriate copyright notice;\nkeep intact all notices stating that this License and any\nnon-permissive terms added in accord with section 7 apply to the code;\nkeep intact all notices of the absence of any warranty; and give all\nrecipients a copy of this License along with the Program.\n\n  You may charge any price or no price for each copy that you convey,\nand you may offer support or warranty protection for a fee.\n\n  5. Conveying Modified Source Versions.\n\n  You may convey a work based on the Program, or the modifications to\nproduce it from the Program, in the form of source code under the\nterms of section 4, provided that you also meet all of these conditions:\n\n    a) The work must carry prominent notices stating that you modified\n    it, and giving a relevant date.\n\n    b) The work must carry prominent notices stating that it is\n    released under this License and any conditions added under section\n    7.  This requirement modifies the requirement in section 4 to\n    \"keep intact all notices\".\n\n    c) You must license the entire work, as a whole, under this\n    License to anyone who comes into possession of a copy.  This\n    License will therefore apply, along with any applicable section 7\n    additional terms, to the whole of the work, and all its parts,\n    regardless of how they are packaged.  This License gives no\n    permission to license the work in any other way, but it does not\n    invalidate such permission if you have separately received it.\n\n    d) If the work has interactive user interfaces, each must display\n    Appropriate Legal Notices; however, if the Program has interactive\n    interfaces that do not display Appropriate Legal Notices, your\n    work need not make them do so.\n\n  A compilation of a covered work with other separate and independent\nworks, which are not by their nature extensions of the covered work,\nand which are not combined with it such as to form a larger program,\nin or on a volume of a storage or distribution medium, is called an\n\"aggregate\" if the compilation and its resulting copyright are not\nused to limit the access or legal rights of the compilation's users\nbeyond what the individual works permit.  Inclusion of a covered work\nin an aggregate does not cause this License to apply to the other\nparts of the aggregate.\n\n  6. Conveying Non-Source Forms.\n\n  You may convey a covered work in object code form under the terms\nof sections 4 and 5, provided that you also convey the\nmachine-readable Corresponding Source under the terms of this License,\nin one of these ways:\n\n    a) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by the\n    Corresponding Source fixed on a durable physical medium\n    customarily used for software interchange.\n\n    b) Convey the object code in, or embodied in, a physical product\n    (including a physical distribution medium), accompanied by a\n    written offer, valid for at least three years and valid for as\n    long as you offer spare parts or customer support for that product\n    model, to give anyone who possesses the object code either (1) a\n    copy of the Corresponding Source for all the software in the\n    product that is covered by this License, on a durable physical\n    medium customarily used for software interchange, for a price no\n    more than your reasonable cost of physically performing this\n    conveying of source, or (2) access to copy the\n    Corresponding Source from a network server at no charge.\n\n    c) Convey individual copies of the object code with a copy of the\n    written offer to provide the Corresponding Source.  This\n    alternative is allowed only occasionally and noncommercially, and\n    only if you received the object code with such an offer, in accord\n    with subsection 6b.\n\n    d) Convey the object code by offering access from a designated\n    place (gratis or for a charge), and offer equivalent access to the\n    Corresponding Source in the same way through the same place at no\n    further charge.  You need not require recipients to copy the\n    Corresponding Source along with the object code.  If the place to\n    copy the object code is a network server, the Corresponding Source\n    may be on a different server (operated by you or a third party)\n    that supports equivalent copying facilities, provided you maintain\n    clear directions next to the object code saying where to find the\n    Corresponding Source.  Regardless of what server hosts the\n    Corresponding Source, you remain obligated to ensure that it is\n    available for as long as needed to satisfy these requirements.\n\n    e) Convey the object code using peer-to-peer transmission, provided\n    you inform other peers where the object code and Corresponding\n    Source of the work are being offered to the general public at no\n    charge under subsection 6d.\n\n  A separable portion of the object code, whose source code is excluded\nfrom the Corresponding Source as a System Library, need not be\nincluded in conveying the object code work.\n\n  A \"User Product\" is either (1) a \"consumer product\", which means any\ntangible personal property which is normally used for personal, family,\nor household purposes, or (2) anything designed or sold for incorporation\ninto a dwelling.  In determining whether a product is a consumer product,\ndoubtful cases shall be resolved in favor of coverage.  For a particular\nproduct received by a particular user, \"normally used\" refers to a\ntypical or common use of that class of product, regardless of the status\nof the particular user or of the way in which the particular user\nactually uses, or expects or is expected to use, the product.  A product\nis a consumer product regardless of whether the product has substantial\ncommercial, industrial or non-consumer uses, unless such uses represent\nthe only significant mode of use of the product.\n\n  \"Installation Information\" for a User Product means any methods,\nprocedures, authorization keys, or other information required to install\nand execute modified versions of a covered work in that User Product from\na modified version of its Corresponding Source.  The information must\nsuffice to ensure that the continued functioning of the modified object\ncode is in no case prevented or interfered with solely because\nmodification has been made.\n\n  If you convey an object code work under this section in, or with, or\nspecifically for use in, a User Product, and the conveying occurs as\npart of a transaction in which the right of possession and use of the\nUser Product is transferred to the recipient in perpetuity or for a\nfixed term (regardless of how the transaction is characterized), the\nCorresponding Source conveyed under this section must be accompanied\nby the Installation Information.  But this requirement does not apply\nif neither you nor any third party retains the ability to install\nmodified object code on the User Product (for example, the work has\nbeen installed in ROM).\n\n  The requirement to provide Installation Information does not include a\nrequirement to continue to provide support service, warranty, or updates\nfor a work that has been modified or installed by the recipient, or for\nthe User Product in which it has been modified or installed.  Access to a\nnetwork may be denied when the modification itself materially and\nadversely affects the operation of the network or violates the rules and\nprotocols for communication across the network.\n\n  Corresponding Source conveyed, and Installation Information provided,\nin accord with this section must be in a format that is publicly\ndocumented (and with an implementation available to the public in\nsource code form), and must require no special password or key for\nunpacking, reading or copying.\n\n  7. Additional Terms.\n\n  \"Additional permissions\" are terms that supplement the terms of this\nLicense by making exceptions from one or more of its conditions.\nAdditional permissions that are applicable to the entire Program shall\nbe treated as though they were included in this License, to the extent\nthat they are valid under applicable law.  If additional permissions\napply only to part of the Program, that part may be used separately\nunder those permissions, but the entire Program remains governed by\nthis License without regard to the additional permissions.\n\n  When you convey a copy of a covered work, you may at your option\nremove any additional permissions from that copy, or from any part of\nit.  (Additional permissions may be written to require their own\nremoval in certain cases when you modify the work.)  You may place\nadditional permissions on material, added by you to a covered work,\nfor which you have or can give appropriate copyright permission.\n\n  Notwithstanding any other provision of this License, for material you\nadd to a covered work, you may (if authorized by the copyright holders of\nthat material) supplement the terms of this License with terms:\n\n    a) Disclaiming warranty or limiting liability differently from the\n    terms of sections 15 and 16 of this License; or\n\n    b) Requiring preservation of specified reasonable legal notices or\n    author attributions in that material or in the Appropriate Legal\n    Notices displayed by works containing it; or\n\n    c) Prohibiting misrepresentation of the origin of that material, or\n    requiring that modified versions of such material be marked in\n    reasonable ways as different from the original version; or\n\n    d) Limiting the use for publicity purposes of names of licensors or\n    authors of the material; or\n\n    e) Declining to grant rights under trademark law for use of some\n    trade names, trademarks, or service marks; or\n\n    f) Requiring indemnification of licensors and authors of that\n    material by anyone who conveys the material (or modified versions of\n    it) with contractual assumptions of liability to the recipient, for\n    any liability that these contractual assumptions directly impose on\n    those licensors and authors.\n\n  All other non-permissive additional terms are considered \"further\nrestrictions\" within the meaning of section 10.  If the Program as you\nreceived it, or any part of it, contains a notice stating that it is\ngoverned by this License along with a term that is a further\nrestriction, you may remove that term.  If a license document contains\na further restriction but permits relicensing or conveying under this\nLicense, you may add to a covered work material governed by the terms\nof that license document, provided that the further restriction does\nnot survive such relicensing or conveying.\n\n  If you add terms to a covered work in accord with this section, you\nmust place, in the relevant source files, a statement of the\nadditional terms that apply to those files, or a notice indicating\nwhere to find the applicable terms.\n\n  Additional terms, permissive or non-permissive, may be stated in the\nform of a separately written license, or stated as exceptions;\nthe above requirements apply either way.\n\n  8. Termination.\n\n  You may not propagate or modify a covered work except as expressly\nprovided under this License.  Any attempt otherwise to propagate or\nmodify it is void, and will automatically terminate your rights under\nthis License (including any patent licenses granted under the third\nparagraph of section 11).\n\n  However, if you cease all violation of this License, then your\nlicense from a particular copyright holder is reinstated (a)\nprovisionally, unless and until the copyright holder explicitly and\nfinally terminates your license, and (b) permanently, if the copyright\nholder fails to notify you of the violation by some reasonable means\nprior to 60 days after the cessation.\n\n  Moreover, your license from a particular copyright holder is\nreinstated permanently if the copyright holder notifies you of the\nviolation by some reasonable means, this is the first time you have\nreceived notice of violation of this License (for any work) from that\ncopyright holder, and you cure the violation prior to 30 days after\nyour receipt of the notice.\n\n  Termination of your rights under this section does not terminate the\nlicenses of parties who have received copies or rights from you under\nthis License.  If your rights have been terminated and not permanently\nreinstated, you do not qualify to receive new licenses for the same\nmaterial under section 10.\n\n  9. Acceptance Not Required for Having Copies.\n\n  You are not required to accept this License in order to receive or\nrun a copy of the Program.  Ancillary propagation of a covered work\noccurring solely as a consequence of using peer-to-peer transmission\nto receive a copy likewise does not require acceptance.  However,\nnothing other than this License grants you permission to propagate or\nmodify any covered work.  These actions infringe copyright if you do\nnot accept this License.  Therefore, by modifying or propagating a\ncovered work, you indicate your acceptance of this License to do so.\n\n  10. Automatic Licensing of Downstream Recipients.\n\n  Each time you convey a covered work, the recipient automatically\nreceives a license from the original licensors, to run, modify and\npropagate that work, subject to this License.  You are not responsible\nfor enforcing compliance by third parties with this License.\n\n  An \"entity transaction\" is a transaction transferring control of an\norganization, or substantially all assets of one, or subdividing an\norganization, or merging organizations.  If propagation of a covered\nwork results from an entity transaction, each party to that\ntransaction who receives a copy of the work also receives whatever\nlicenses to the work the party's predecessor in interest had or could\ngive under the previous paragraph, plus a right to possession of the\nCorresponding Source of the work from the predecessor in interest, if\nthe predecessor has it or can get it with reasonable efforts.\n\n  You may not impose any further restrictions on the exercise of the\nrights granted or affirmed under this License.  For example, you may\nnot impose a license fee, royalty, or other charge for exercise of\nrights granted under this License, and you may not initiate litigation\n(including a cross-claim or counterclaim in a lawsuit) alleging that\nany patent claim is infringed by making, using, selling, offering for\nsale, or importing the Program or any portion of it.\n\n  11. Patents.\n\n  A \"contributor\" is a copyright holder who authorizes use under this\nLicense of the Program or a work on which the Program is based.  The\nwork thus licensed is called the contributor's \"contributor version\".\n\n  A contributor's \"essential patent claims\" are all patent claims\nowned or controlled by the contributor, whether already acquired or\nhereafter acquired, that would be infringed by some manner, permitted\nby this License, of making, using, or selling its contributor version,\nbut do not include claims that would be infringed only as a\nconsequence of further modification of the contributor version.  For\npurposes of this definition, \"control\" includes the right to grant\npatent sublicenses in a manner consistent with the requirements of\nthis License.\n\n  Each contributor grants you a non-exclusive, worldwide, royalty-free\npatent license under the contributor's essential patent claims, to\nmake, use, sell, offer for sale, import and otherwise run, modify and\npropagate the contents of its contributor version.\n\n  In the following three paragraphs, a \"patent license\" is any express\nagreement or commitment, however denominated, not to enforce a patent\n(such as an express permission to practice a patent or covenant not to\nsue for patent infringement).  To \"grant\" such a patent license to a\nparty means to make such an agreement or commitment not to enforce a\npatent against the party.\n\n  If you convey a covered work, knowingly relying on a patent license,\nand the Corresponding Source of the work is not available for anyone\nto copy, free of charge and under the terms of this License, through a\npublicly available network server or other readily accessible means,\nthen you must either (1) cause the Corresponding Source to be so\navailable, or (2) arrange to deprive yourself of the benefit of the\npatent license for this particular work, or (3) arrange, in a manner\nconsistent with the requirements of this License, to extend the patent\nlicense to downstream recipients.  \"Knowingly relying\" means you have\nactual knowledge that, but for the patent license, your conveying the\ncovered work in a country, or your recipient's use of the covered work\nin a country, would infringe one or more identifiable patents in that\ncountry that you have reason to believe are valid.\n\n  If, pursuant to or in connection with a single transaction or\narrangement, you convey, or propagate by procuring conveyance of, a\ncovered work, and grant a patent license to some of the parties\nreceiving the covered work authorizing them to use, propagate, modify\nor convey a specific copy of the covered work, then the patent license\nyou grant is automatically extended to all recipients of the covered\nwork and works based on it.\n\n  A patent license is \"discriminatory\" if it does not include within\nthe scope of its coverage, prohibits the exercise of, or is\nconditioned on the non-exercise of one or more of the rights that are\nspecifically granted under this License.  You may not convey a covered\nwork if you are a party to an arrangement with a third party that is\nin the business of distributing software, under which you make payment\nto the third party based on the extent of your activity of conveying\nthe work, and under which the third party grants, to any of the\nparties who would receive the covered work from you, a discriminatory\npatent license (a) in connection with copies of the covered work\nconveyed by you (or copies made from those copies), or (b) primarily\nfor and in connection with specific products or compilations that\ncontain the covered work, unless you entered into that arrangement,\nor that patent license was granted, prior to 28 March 2007.\n\n  Nothing in this License shall be construed as excluding or limiting\nany implied license or other defenses to infringement that may\notherwise be available to you under applicable patent law.\n\n  12. No Surrender of Others' Freedom.\n\n  If conditions are imposed on you (whether by court order, agreement or\notherwise) that contradict the conditions of this License, they do not\nexcuse you from the conditions of this License.  If you cannot convey a\ncovered work so as to satisfy simultaneously your obligations under this\nLicense and any other pertinent obligations, then as a consequence you may\nnot convey it at all.  For example, if you agree to terms that obligate you\nto collect a royalty for further conveying from those to whom you convey\nthe Program, the only way you could satisfy both those terms and this\nLicense would be to refrain entirely from conveying the Program.\n\n  13. Use with the GNU Affero General Public License.\n\n  Notwithstanding any other provision of this License, you have\npermission to link or combine any covered work with a work licensed\nunder version 3 of the GNU Affero General Public License into a single\ncombined work, and to convey the resulting work.  The terms of this\nLicense will continue to apply to the part which is the covered work,\nbut the special requirements of the GNU Affero General Public License,\nsection 13, concerning interaction through a network will apply to the\ncombination as such.\n\n  14. Revised Versions of this License.\n\n  The Free Software Foundation may publish revised and/or new versions of\nthe GNU General Public License from time to time.  Such new versions will\nbe similar in spirit to the present version, but may differ in detail to\naddress new problems or concerns.\n\n  Each version is given a distinguishing version number.  If the\nProgram specifies that a certain numbered version of the GNU General\nPublic License \"or any later version\" applies to it, you have the\noption of following the terms and conditions either of that numbered\nversion or of any later version published by the Free Software\nFoundation.  If the Program does not specify a version number of the\nGNU General Public License, you may choose any version ever published\nby the Free Software Foundation.\n\n  If the Program specifies that a proxy can decide which future\nversions of the GNU General Public License can be used, that proxy's\npublic statement of acceptance of a version permanently authorizes you\nto choose that version for the Program.\n\n  Later license versions may give you additional or different\npermissions.  However, no additional obligations are imposed on any\nauthor or copyright holder as a result of your choosing to follow a\nlater version.\n\n  15. Disclaimer of Warranty.\n\n  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY\nAPPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT\nHOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM \"AS IS\" WITHOUT WARRANTY\nOF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,\nTHE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR\nPURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM\nIS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF\nALL NECESSARY SERVICING, REPAIR OR CORRECTION.\n\n  16. Limitation of Liability.\n\n  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\nWILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS\nTHE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY\nGENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE\nUSE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF\nDATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD\nPARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),\nEVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF\nSUCH DAMAGES.\n\n  17. Interpretation of Sections 15 and 16.\n\n  If the disclaimer of warranty and limitation of liability provided\nabove cannot be given local legal effect according to their terms,\nreviewing courts shall apply local law that most closely approximates\nan absolute waiver of all civil liability in connection with the\nProgram, unless a warranty or assumption of liability accompanies a\ncopy of the Program in return for a fee.\n\n                     END OF TERMS AND CONDITIONS\n\n            How to Apply These Terms to Your New Programs\n\n  If you develop a new program, and you want it to be of the greatest\npossible use to the public, the best way to achieve this is to make it\nfree software which everyone can redistribute and change under these terms.\n\n  To do so, attach the following notices to the program.  It is safest\nto attach them to the start of each source file to most effectively\nstate the exclusion of warranty; and each file should have at least\nthe \"copyright\" line and a pointer to where the full notice is found.\n\n    <one line to give the program's name and a brief idea of what it does.>\n    Copyright (C) <year>  <name of author>\n\n    This program is free software: you can redistribute it and/or modify\n    it under the terms of the GNU General Public License as published by\n    the Free Software Foundation, either version 3 of the License, or\n    (at your option) any later version.\n\n    This program is distributed in the hope that it will be useful,\n    but WITHOUT ANY WARRANTY; without even the implied warranty of\n    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n    GNU General Public License for more details.\n\n    You should have received a copy of the GNU General Public License\n    along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\nAlso add information on how to contact you by electronic and paper mail.\n\n  If the program does terminal interaction, make it output a short\nnotice like this when it starts in an interactive mode:\n\n    <program>  Copyright (C) <year>  <name of author>\n    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\n    This is free software, and you are welcome to redistribute it\n    under certain conditions; type `show c' for details.\n\nThe hypothetical commands `show w' and `show c' should show the appropriate\nparts of the General Public License.  Of course, your program's commands\nmight be different; for a GUI interface, you would use an \"about box\".\n\n  You should also get your employer (if you work as a programmer) or school,\nif any, to sign a \"copyright disclaimer\" for the program, if necessary.\nFor more information on this, and how to apply and follow the GNU GPL, see\n<https://www.gnu.org/licenses/>.\n\n  The GNU General Public License does not permit incorporating your program\ninto proprietary programs.  If your program is a subroutine library, you\nmay consider it more useful to permit linking proprietary applications with\nthe library.  If this is what you want to do, use the GNU Lesser General\nPublic License instead of this License.  But first, please read\n<https://www.gnu.org/licenses/why-not-lgpl.html>.\n"
  },
  {
    "path": "Makefile",
    "content": "EMACS ?= emacs\nCASK ?= cask\nEASK ?= eask\n\ncompile:\n\t$(EASK) compile\n\nall: autoloads $(ELCS) authors\n\nauthors: AUTHORS.md\n\n.PHONY: AUTHORS.md\nAUTHORS.md: etc/git/AUTHORS.md.in .mailmap\n\t@printf \"Generating AUTHORS.md file...\"\n\t@test -d .git \\\n\t\t&& (cat $< > $@ \\\n\t\t\t&& git log --pretty=format:'- %aN' \\\n\t\t\t\t| cat etc/git/former-contributors - \\\n\t\t\t\t| grep -v dependabot \\\n\t\t\t\t| LANG=C sort -u >> $@ \\\n\t\t\t&& cat etc/git/AUTHORS2.md.in >> $@ \\\n\t\t\t&& printf \"FINISHED\\n\" ; ) \\\n\t\t|| printf \"FAILED (non-fatal)\\n\"\n\nautoloads:\n\t$(EASK) generate autoloads\n\n.eask: Eask\n\t$(EASK) install\n\nclean:\n\t$(EASK) clean all\n\n# Perform any operations that will be useful for developers\n# who contribute to PHP Mode.\ndev:\n\tcp etc/git/prepare-commit-msg .git/hooks/prepare-commit-msg\n\tchmod u+x .git/hooks/prepare-commit-msg\n\n# Runs all unit tests from php-mode-test.el and shows the results. The\n# script will exit with the status code zero if all tests pass. If any\n# test fails the script exits with a non-zero status and shows\n# diagnostics on standard output.\n#\n# You can use this script with git-bisect. See the documentation at\n#\n#     http://git-scm.com/book/en/Git-Tools-Debugging-with-Git\n#\n# for an example of using a script like this with the 'git bisect run'\n# command.\ntest: clean all\n\t$(EASK) test ert ./tests/php-mode-test.el\n\n.PHONY: all authors autoloads clean test\n"
  },
  {
    "path": "README.ja.md",
    "content": "<div align=\"center\">\n  <h1>Emacs PHP Mode</h1>\n\n[![Emacs: 30.0](https://img.shields.io/badge/Emacs-30.0-blue.svg)](https://www.gnu.org/software/emacs/)\n[![lang: PHP 8.4](https://img.shields.io/badge/lang-PHP%208.4-brightgreen.svg)](https://www.php.net/releases/8.4/)\n[![Build Status](https://github.com/emacs-php/php-mode/workflows/CI/badge.svg)](https://github.com/emacs-php/php-mode/actions)\n[![GPL v3](https://img.shields.io/badge/license-GPL_v3-green.svg)][gpl-v3]<br>\n[![NonGNU ELPA][nongnu-elpa-badge]][nongnu-elpa]\n[![melpa badge][melpa-badge]][melpa-link]\n\nA powerful and flexible Emacs major mode for editing PHP scripts\n\n[English](README.md) &nbsp;&nbsp;|&nbsp;&nbsp; 日本語\n\n</div>\n\n[GitHubプロジェクト][php-mode]にissueを作成してバグ報告や機能リクエストを送ってください。\n\n> [!NOTE]\n> [最新版][releases]のPHP ModeはEmacs 30をサポートしています。<br />アップグレードに伴うトラブルは[Discussions][discussions-emacs30]に気軽に書き込んでください。\n\n> [!WARNING]\n> Emacsをアップグレードした直後に初めてPHPファイルを開いたときに、CC Mode関連のエラーが発生する可能性があります。これは以前のバージョンのEmacsでバイトコンパイルされたPHP Modeがディスクにキャッシュされているために起こるので、PHP Modeの再インストールによって解決します。\n>\n> **`M-x php-mode-debug-reinstall`** または **`M-x package-reinstall php-mode`** コマンドをお試しください。\n\n[releases]: https://github.com/emacs-php/php-mode/releases\n[discussions-emacs30]: https://github.com/emacs-php/php-mode/discussions/798\n\n## インストール\n\n**PHP ModeはEmacs 27.1以降で動作します**。対応バージョンの詳細は[Supported Version]をお読みください。Emacs 28以降では単に以下のコマンドを実行するだけでインストールできます。\n\n```\nM-x package-install php-mode\n```\n\n[`package-archives`にMELPAを追加][melpa-getting-started]することで、Web上の多くのパッケージでEmacsを強化できます。\n\nパッケージマネージャへの依存なしでインストールしたい場合は、Lispファイルを直接配置する伝統的な方法も可能です。詳しくは[Manual installation][wiki-manual-installation]をお読みください。\n\n## 設定\n\n### 個人設定\n\n.emacsファイル(`~/.emacs.d/init.el`)にPHPモードの設定を記述できます。\n\n```lisp\n(defun my-php-mode-init ()\n  (subword-mode 1)\n  (setq-local show-trailing-whitespace t)\n  (setq-local ac-disable-faces '(font-lock-comment-face font-lock-string-face))\n  (add-hook 'hack-local-variables-hook 'php-ide-turn-on nil t))\n\n(with-eval-after-load 'php-mode\n  (add-hook 'php-mode-hook #'my-php-mode-init)\n  (custom-set-variables\n   '(php-mode-coding-style 'psr2)\n   '(php-mode-template-compatibility nil)\n   '(php-imenu-generic-expression 'php-imenu-generic-expression-simple))\n\n  ;; If you find phpcs to be bothersome, you can disable it.\n  (when (require 'flycheck nil)\n    (add-to-list 'flycheck-disabled-checkers 'php-phpmd)\n    (add-to-list 'flycheck-disabled-checkers 'php-phpcs)))\n```\n\n### プロジェクトローカル設定\n\nプロジェクトのトップディレクトリに`.dir-locals.el`または`.dir-locals-2.el`を記述すると、プロジェクト単位の設定を追加することができます。このファイルはユーザー自身のEmacsにインストールされたパッケージに依存するため、バージョン管理の対象に含めないことを推奨します。\n\n```lisp\n((nil\n  (php-project-root . git)\n  (php-project-coding-style . psr2)))\n```\n\n## 不具合を報告する\n\nバグ報告の際には `M-x php-mode-debug` の出力を含めてください。この情報は問題の再現に役立ちます。\n\n貢献するには\n-----------------\n\n[CONTRIBUTING.md](CONTRIBUTING.md#japanese)をご覧ください。\n\n## 著作権\n\nPHP Modeは[GNU General Public License Version 3][gpl-v3] (GPLv3) でライセンスされています。\n\nこのプロジェクトは1999年に[Turadg Aleahmad][@turadg]が書いた`php-mode.el`に起源を持ちます。2013年に[Daniel Hackney][@haxney]がEmacs組み込みのCC Modeをもとに書き直し始めました。PHPモードの改善に協力した貢献者のリストは[Authors]と[Contributors]に掲載されています。\n\nこのプロジェクトは2017年まで[Eric James Michael Ritz][@ejmr]によりメンテナンスされていました。現在は[Friends of Emacs-PHP Development][@emacs-php]コミュニティが引き継いで開発しています。\n\n> ```\n> Copyright (C) 2023  Friends of Emacs-PHP development\n> Copyright (C) 1999, 2000, 2001, 2003, 2004 Turadg Aleahmad\n>               2008 Aaron S. Hawley\n>               2011, 2012, 2013, 2014, 2015, 2016, 2017 Eric James Michael Ritz\n> ```\n>\n> This program is free software; you can redistribute it and/or modify\n> it under the terms of the GNU General Public License as published by\n> the Free Software Foundation, either version 3 of the License, or\n> (at your option) any later version.\n>\n> This program is distributed in the hope that it will be useful,\n> but WITHOUT ANY WARRANTY; without even the implied warranty of\n> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n> GNU General Public License for more details.\n>\n> You should have received a copy of the GNU General Public License\n> along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n[@ejmr]: https://github.com/ejmr\n[@emacs-php]: https://github.com/emacs-php\n[@haxney]: https://github.com/haxney\n[@turadg]: https://github.com/turadg\n[Authors]: https://github.com/emacs-php/php-mode/wiki/Authors\n[Contributors]: https://github.com/emacs-php/php-mode/graphs/contributors\n[Supported Version]: https://github.com/emacs-php/php-mode/wiki/Supported-Version\n[gpl-v3]: https://www.gnu.org/licenses/gpl-3.0\n[nongnu-elpa-badge]: https://elpa.nongnu.org/nongnu/php-mode.svg\n[nongnu-elpa]: https://elpa.nongnu.org/nongnu/php-mode.html\n[melpa-badge]: http://melpa.org/packages/php-mode-badge.svg\n[melpa-getting-started]: https://melpa.org/#/getting-started\n[melpa-link]: http://melpa.org/#/php-mode\n[php-mode]: https://github.com/emacs-php/php-mode\n[wiki]: https://github.com/emacs-php/php-mode/wiki\n[wiki-manual-installation]: https://github.com/emacs-php/php-mode/wiki/Manual-installation-ja\n"
  },
  {
    "path": "README.md",
    "content": "<div align=\"center\">\n  <h1>Emacs PHP Mode</h1>\n\n[![Emacs: 30.0](https://img.shields.io/badge/Emacs-30.0-blue.svg)](https://www.gnu.org/software/emacs/)\n[![lang: PHP 8.4](https://img.shields.io/badge/lang-PHP%208.4-brightgreen.svg)](https://www.php.net/releases/8.4/)\n[![Build Status](https://github.com/emacs-php/php-mode/workflows/CI/badge.svg)](https://github.com/emacs-php/php-mode/actions)\n[![GPL v3](https://img.shields.io/badge/license-GPL_v3-green.svg)][gpl-v3]<br>\n[![NonGNU ELPA][nongnu-elpa-badge]][nongnu-elpa]\n[![melpa badge][melpa-badge]][melpa-link]\n\nA powerful and flexible Emacs major mode for editing PHP scripts\n\nEnglish &nbsp;&nbsp;|&nbsp;&nbsp; [日本語](README.ja.md)\n\n</div>\n\nPlease submit any bug reports or feature requests by creating issues on [the GitHub page for PHP Mode][php-mode].\n\n> [!NOTE]\n> The [latest version][releases] of PHP Mode supports Emacs 30.  \n> Please feel free to [open a discussion][discussions-emacs30] if you have any issues upgrading to Emacs 30.\n\n> [!WARNING]\n> After upgrading Emacs, when you open a PHP file for the first time, you may encounter errors related to CC Mode. These errors occur because a previously byte-compiled version of PHP Mode, cached on your disk, differs from the newly installed one. Reinstalling PHP Mode should resolve the issue.\n>\n> Try running **`M-x php-mode-debug-reinstall`** or **`M-x package-reinstall php-mode`**.\n\n[releases]: https://github.com/emacs-php/php-mode/releases\n[discussions-emacs30]: https://github.com/emacs-php/php-mode/discussions/798\n\n## Installation\n\n**PHP Mode works with Emacs 27.1 or later.** For details on supported versions, see [Supported Version].\nOn Emacs 28 or later, you can install it simply by running:\n\n```\nM-x package-install php-mode\n```\n\nBy [adding MELPA to `package-archives`][melpa-getting-started], you can extend Emacs with numerous packages from the web.\n\nIf you prefer not to rely on a package manager, you can install the Lisp files directly in the traditional manner.  See [Manual installation][wiki-manual-installation] for our recommended method.\n\n## Configuration\n\n### Personal Settings\n\nYou can add configurations for PHP Mode in your `.emacs` file (`~/.emacs.d/init.el`):\n\n```lisp\n(defun my-php-mode-init ()\n  (subword-mode 1)\n  (setq-local show-trailing-whitespace t)\n  (setq-local ac-disable-faces '(font-lock-comment-face font-lock-string-face))\n  (add-hook 'hack-local-variables-hook 'php-ide-turn-on nil t))\n\n(with-eval-after-load 'php-mode\n  (add-hook 'php-mode-hook #'my-php-mode-init)\n  (custom-set-variables\n   '(php-mode-coding-style 'psr2)\n   '(php-mode-template-compatibility nil)\n   '(php-imenu-generic-expression 'php-imenu-generic-expression-simple))\n\n  ;; If you find phpcs to be bothersome, you can disable it.\n  (when (require 'flycheck nil)\n    (add-to-list 'flycheck-disabled-checkers 'php-phpmd)\n    (add-to-list 'flycheck-disabled-checkers 'php-phpcs)))\n```\n\n### Project Setting\n\nYou can add project-specific settings by creating a `.dir-locals.el` or `.dir-locals-2.el` file in the project's root directory.  It is recommended not to put these files under version control, as they depend on the packages installed on each user's Emacs.\n\n```lisp\n((nil\n  (php-project-root . git)\n  (php-project-coding-style . psr2)))\n```\n\n## Reporting Bugs\n\nWhen reporting a bug, please run `M-x php-mode-debug` and include its output in your bug report.  This helps us reproduce any issues you may be experiencing.\n\n## How to Contribute\n\nPlease see [CONTRIBUTING.md](CONTRIBUTING.md#english).\n\n## Copyright\n\nPHP Mode is licensed under [GNU General Public License Version 3][gpl-v3] (GPLv3).\n\nThis project originated in `php-mode.el` written by [Turadg Aleahmad][@turadg] in 1999.  In 2013 [Daniel Hackney][@haxney] began rewriting parts of PHP Mode in terms of Emacs' built-in CC Mode.  Other contributors are listed in [Authors] and [Contributors].\n\nThis project was maintained by [Eric James Michael Ritz][@ejmr] until 2017. Currently, the [Friends of Emacs-PHP Development][@emacs-php] community inherits PHP Mode.\n\n> ```\n> Copyright (C) 2022  Friends of Emacs-PHP development\n> Copyright (C) 1999, 2000, 2001, 2003, 2004 Turadg Aleahmad\n>               2008 Aaron S. Hawley\n>               2011, 2012, 2013, 2014, 2015, 2016, 2017 Eric James Michael Ritz\n> ```\n>\n> This program is free software; you can redistribute it and/or modify\n> it under the terms of the GNU General Public License as published by\n> the Free Software Foundation, either version 3 of the License, or\n> (at your option) any later version.\n>\n> This program is distributed in the hope that it will be useful,\n> but WITHOUT ANY WARRANTY; without even the implied warranty of\n> MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n> GNU General Public License for more details.\n>\n> You should have received a copy of the GNU General Public License\n> along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n[@ejmr]: https://github.com/ejmr\n[@emacs-php]: https://github.com/emacs-php\n[@haxney]: https://github.com/haxney\n[@turadg]: https://github.com/turadg\n[Authors]: https://github.com/emacs-php/php-mode/wiki/Authors\n[Contributors]: https://github.com/emacs-php/php-mode/graphs/contributors\n[Supported Version]: https://github.com/emacs-php/php-mode/wiki/Supported-Version\n[gpl-v3]: https://www.gnu.org/licenses/gpl-3.0\n[nongnu-elpa-badge]: https://elpa.nongnu.org/nongnu/php-mode.svg\n[nongnu-elpa]: https://elpa.nongnu.org/nongnu/php-mode.html\n[melpa-badge]: http://melpa.org/packages/php-mode-badge.svg\n[melpa-getting-started]: https://melpa.org/#/getting-started\n[melpa-link]: http://melpa.org/#/php-mode\n[php-mode]: https://github.com/emacs-php/php-mode\n[wiki]: https://github.com/emacs-php/php-mode/wiki\n[wiki-manual-installation]: https://github.com/emacs-php/php-mode/wiki/Manual-installation\n"
  },
  {
    "path": "docs/php-align/README.md",
    "content": "# php-align.el\n\nCAUTION!! this is still experimental.\n\nSupport alignment (e.g. `align`, `align-current`) for PHP.\n\nPut this file into your load-path.and the following code into your ~/.emacs\n\n```el\n(add-hook 'php-mode-hook #'php-align-setup)\n```\n\n## Examples\n\n### 1.\n\n#### before\n\n```php\n$foo = \"string\"; // M-x align-current\n$looooooooong = 1; //\n```\n\n#### after\n\n```php\n$foo          = \"string\"; // M-x align-current\n$looooooooong = 1;        //\n```\n\n### 2.\n\n#### before\n\n```php\n\"$foo = 1\";\n$foo = \"string\"; // M-x align-current\n$looooooooong = 1; //\n\n$bar = 2; //\n```\n\n#### after\n\n```php\n\"$foo = 1\";\n$foo          = \"string\"; // M-x align-current\n$looooooooong = 1;        //\n\n$bar = 2; //\n```\n\n### 3.\n\n#### before\n\n```php\n$variable = 1;\n$vars = array(); // M-x align-current\nif ($variable == $vars) {\n\n}\n```\n\n#### after\n\n```php\n$variable = 1;\n$vars     = array(); // M-x align-current\nif ($variable == $vars) {\n\n}\n```\n\n### 4.\n\n#### before\n\n```php\n$vars = array(\n    1, 2, 3,\n    4, 5, 6,\n    7, 8, 9,\n    10, 11, 12, // C-u M-x align-current\n);\n```\n\n#### after\n\n```php\n$vars = array(\n    1,  2,  3,\n    4,  5,  6,\n    7,  8,  9,\n    10, 11, 12, // C-u M-x align-current\n);\n```\n"
  },
  {
    "path": "etc/git/AUTHORS.md.in",
    "content": "# Authors\n\n## Author\n\n- [Turadg Aleahmad](https://github.com/turadg) (Original Author)\n- [Daniel Hackney](https://github.com/haxney) (Integrated with CC Mode)\n\n## Maintainer\n\n- [USAMI Kenta (@zonuexe)](https://github.com/zonuexe) <tadsan@zonu,me>\n\n## Retired Maintainers\n\n- [Aaron S. Hawley](https://users.ninthfloor.org/~ashawley/)\n- [Lennart Borgman](https://www.emacswiki.org/emacs/LennartBorgman)\n- [Eric James Michael Ritz](https://github.com/ejmr)\n- [Syohei Yoshida](https://syohex.org/)\n\n## Contributors\n\nAll contributors listed below improved PHP Mode as well.\n\nNames Sorted Alphabetically:\n\n"
  },
  {
    "path": "etc/git/AUTHORS2.md.in",
    "content": "\nA chronological list of pre-2019 contributors can be found at [wiki/Authors](https://github.com/emacs-php/php-mode/wiki/Authors).\n\nContributors since 2011, where this project was hosted, can also be found at [graphs/contributors](https://github.com/emacs-php/php-mode/graphs/contributors), except for accounts that have been withdrawn from GitHub.\n"
  },
  {
    "path": "etc/git/commit-template.txt",
    "content": "# SUBJECT, 50 Characters, No Period\n# \"If applied, this commit will...\"\n\n# BODY, 72 Characters\n# Answers the question, \"Why?\", not, \"How?\"\n\n# METADATA\n# GitHub-Issue:\n# Resolves:\n# See-also:\n# Reviewed-by:\n# Special-thanks:\n# HANGING INDENT\n"
  },
  {
    "path": "etc/git/former-contributors",
    "content": "- Aaron S. Hawley\n- Bill Lovett\n- Boris Folgmann\n- Chris Morris\n- Craig Andrews\n- David House\n- Dias Badekas\n- Doug Marcey\n- Eric Mc Sween\n- Fred Yankowski\n- Gerrit Riessen\n- Giacomo Tesio\n- Gregory Stark\n- Ian Eure\n- John Keller\n- Juanjo\n- Kevin Blake\n- Lennart Borgman\n- Mathias Meyer\n- Nils Rennebarth\n- Rex McMaster\n- Roland\n- Rosenfeld\n- Ryan\n- Sammartino\n- Sean Champ\n- Stefan Monnier\n- Stig Bakken\n- Torsten Martinsen\n- Valentin Funk\n- Ville Skytta\n- Vinai Kopp\n- ppercot\n"
  },
  {
    "path": "etc/git/prepare-commit-msg",
    "content": "#!/bin/sh\n#\n# prepare-commit-msg\n# ==================\n#\n# ## SYNOPSIS\n#\n# This hook fills the user's editor with a pre-written commit message\n# template, intended to help contributors adhere to good style and\n# practices when it comes to writing Git commit messages.\n#\n########################################################################\n\n# This hook will always recieve three arguments.  We only care about the\n# first for our purposes, but still assign useful names to the others\n# in case we need them in the future.\nCOMMIT_MESSAGE=$1\nCOMMIT_SOURCE=$2\nCOMMIT_SHA1=$3\n\n# If the commit message already contains content then the developer\n# is probably using his or her own template.  In which case we do not\n# trample over it.  We test for a pre-existing template by reading\n# the first line of the commit message this hook recieved, and check\n# so see if it is an empty string (apply our template) or not (leave\n# the message alone).\nTITLE_LINE=$(head -n1 $COMMIT_MESSAGE)\n\nif [ -z \"$TITLE_LINE\" ]; then\n\tproject_dir=$(git rev-parse --show-toplevel)\n\ttemplate=\"$project_dir/etc/git/commit-template.txt\"\n\techo \"$(cat $template)\\n$(cat $COMMIT_MESSAGE)\" > $COMMIT_MESSAGE\nfi\n\nexit 0\n"
  },
  {
    "path": "lisp/.editorconfig",
    "content": "# EditorConfig is awesome: http://EditorConfig.org\n\n# top-most EditorConfig file\nroot = true\n\n# Unix-style newlines with a newline ending every file\n[*]\nend_of_line = lf\ncharset = utf-8\n\n[*.el]\nindent_style = space\n\n[Makefile]\nindent_style = tab\n"
  },
  {
    "path": "lisp/php-align.el",
    "content": ";;; php-align.el --- Alignment configuration for PHP  -*- lexical-binding: t; -*-\n\n;; Copyright (C) 2011  tetsujin (Yusuke Segawa)\n;; Copyright (C) 2023  Friends of Emacs-PHP development\n\n;; Author: tetsujin (Yusuke Segawa) <tetsujin85 (at) gmail.com>\n;; Maintainer: USAMI Kenta <tadsan@zonu.me>\n;; Keywords: php languages convenience align\n;; Homepage: https://github.com/emacs-php/php-mode\n;; Version: 1.26.1\n;; License: GPL-3.0-or-later\n\n;; This program is free software; you can redistribute it and/or modify\n;; it under the terms of the GNU General Public License as published by\n;; the Free Software Foundation, either version 3 of the License, or\n;; (at your option) any later version.\n\n;; This program is distributed in the hope that it will be useful,\n;; but WITHOUT ANY WARRANTY; without even the implied warranty of\n;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;; GNU General Public License for more details.\n\n;; You should have received a copy of the GNU General Public License\n;; along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n;;; Commentary:\n\n;; This extension provides alignment for PHP.\n;; Note that you must have Font Lock mode enabled.\n;;\n;; Put this file into your load-path.and the following code into your ~/.emacs\n;;\n;;     (add-hook 'php-mode-hook #'php-align-setup)\n\n;;; TODO:\n;; - Add test codes using el-expectations.\n\n;;; Code:\n(require 'align)\n(require 'regexp-opt)\n(require 'php-project)\n\n(defvar php-align-rules-list\n  `((php-comma-delimiter\n     (regexp   . \",\\\\(\\\\s-*\\\\)[^/ \\t\\n]\")\n     (repeat   . t)\n     (modes    . '(php-mode))\n     (run-if   . ,(function (lambda () current-prefix-arg))))\n    (php-assignment\n     (regexp   . ,(concat \"[^=!^&*-+<>/.| \\t\\n]\\\\(\\\\s-*[=!^&%*-+<>/.|]*\\\\)=>?\"\n                          \"\\\\(\\\\s-*\\\\)\\\\([^= \\t\\n]\\\\|$\\\\)\"))\n     (group    . (1 2))\n     (modes    . '(php-mode))\n     (justify  . t)\n     (tab-stop . nil))\n    (php-comment\n     (regexp   . \"\\\\(\\\\s-*\\\\)\\\\(//.*\\\\|/\\\\*.*\\\\*/\\\\s-*\\\\)$\")\n     (modes    . (php-mode))\n     (column   . comment-column)\n     (valid    . ,(function\n                   (lambda ()\n                     (save-excursion\n                       (goto-char (match-beginning 1))\n                       (not (bolp)))))))\n    (php-chain-logic\n     (regexp   . \"\\\\(\\\\s-*\\\\)\\\\(&&\\\\|||\\\\|\\\\<and\\\\>\\\\|\\\\<or\\\\>\\\\)\")\n     (modes    . (php-mode))\n     (valid    . ,(function\n                   (lambda ()\n                     (save-excursion\n                       (goto-char (match-end 2))\n                       (looking-at \"\\\\s-*\\\\(/[*/]\\\\|$\\\\)\"))))))))\n\n(defvar php-align-region-separate\n  (eval-when-compile\n    (concat\n     ;; blank line\n     \"\\\\(?:\" \"^\\\\s-*$\" \"\\\\)\"\n     \"\\\\|\"\n     ;; comment start or end line\n     \"\\\\(?:\" \"^\\\\s-*\\\\(?:/[/*]\\\\|\\\\*/\\\\)\" \"\\\\)\"\n     \"\\\\|\"\n     ;; end of line are '[', '(', '{', '}', '/*'\n     \"\\\\(?:\" \"\\\\(?:[[({}]\\\\|/\\\\*+\\\\)\\\\s-*$\" \"\\\\)\"\n     \"\\\\|\"\n     ;; beginning of line are ')', '}', ']' and trailing character are ',', ';'\n     \"\\\\(?:\" \"^\\\\s-*[)}]][ \\t,;]?\\\\s-*$\" \"\\\\)\"\n     \"\\\\|\"\n     ;;  beginning of line are some PHP keywrods\n     \"\\\\(?:\"\n     \"^\\\\s-*\"\n     (regexp-opt\n      '(\"for\" \"foreach\" \"while\" \"if\" \"else\" \"switch\" \"case\" \"break\" \"continue\"\n        \"try\" \"catch\" \"declare\" \"do\" \"return\" \"namespace\" \"use\"))\n     \"[ ;]\"\n     \"\\\\)\"\n     \"\\\\|\"\n     ;; function or method call\n     \"\\\\(?:\" \"^\\\\s-*\" \"\\\\(?:\" \"\\\\w\\\\|[->\\\\: \\t]\" \"\\\\)+\" \"(\" \"\\\\)\"))\n  \"Regexp of a section of PHP for alignment.\")\n\n;;;###autoload\n(defun php-align-setup ()\n  \"Setup alignment configuration for PHP code.\"\n  (when php-project-align-lines\n    (php-align-mode 1)))\n\n(defvar php-align-mode-lighter \" PHP-Align\")\n\n;;;###autoload\n(define-minor-mode php-align-mode\n  \"Alignment lines for PHP script.\"\n  :lighter php-align-mode-lighter\n  (add-to-list 'align-open-comment-modes 'php-mode)\n  (add-to-list 'align-dq-string-modes 'php-mode)\n  (add-to-list 'align-sq-string-modes 'php-mode)\n\n  (if php-align-mode\n      (progn\n        (setq-local align-mode-rules-list php-align-rules-list)\n        (setq-local align-region-separate php-align-region-separate))\n    (setq-local align-mode-rules-list nil)\n    (setq-local align-region-separate nil)))\n\n(provide 'php-align)\n;;; php-align.el ends here\n"
  },
  {
    "path": "lisp/php-complete.el",
    "content": ";;; php-complete.el --- PHP auto-compiletion functions         -*- lexical-binding: t; -*-\n\n;; Copyright (C) 2023  Friends of Emacs-PHP development\n;; Copyright (C) 2021, 2022  Free Software Foundation, Inc.\n\n;; Author: USAMI Kenta <tadsan@zonu.me>\n\n;; Created: 18 Sep 2022\n;; Version: 1.26.1\n;; Keywords: languages, php\n\n;; This program is free software; you can redistribute it and/or modify\n;; it under the terms of the GNU General Public License as published by\n;; the Free Software Foundation, either version 3 of the License, or\n;; (at your option) any later version.\n\n;; This program is distributed in the hope that it will be useful,\n;; but WITHOUT ANY WARRANTY; without even the implied warranty of\n;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;; GNU General Public License for more details.\n\n;; You should have received a copy of the GNU General Public License\n;; along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n;;; Commentary:\n\n;; Provide auto-compiletion functions.\n\n;; These functions are copied function from GNU ELPA.\n;;\n;; - cape--table-with-properties (cape.el)\n;; - cape--bounds (cape.el)\n;; - cape--interactive (cape.el)\n\n;;; Code:\n(eval-when-compile\n  (require 'cl-lib))\n(require 'php)\n(require 'php-defs)\n\n;;;###autoload\n(defgroup php-complete nil\n  \"Auto completion for PHP edition.\"\n  :tag \"PHP Completion\"\n  :group 'php-mode)\n\n;;;###autoload\n(defcustom php-complete-function-modules '(bcmath core gmp libxml intl mbstring pcntl posix sodium xml xmlwriter)\n  \"Module names for function names completion.\"\n  :tag \"PHP Complete Function Modules\"\n  :type (eval-when-compile `(set ,@(mapcar (lambda (elm) (list 'const (car elm)))\n                                           php-defs-functions-alist)))\n  :safe (lambda (value) (and (listp value) (cl-loop for v in values\n                                                    always (assq v php-defs-functions-alist))))\n  :group 'php-complete)\n\f\n;;; Cape functions:\n\n;; These functions are copied from cape.el package.  https://github.com/minad/cape\n;; Thanks to original author Daniel Mendler (@minad)\n\n(cl-defun php-complete--cape-table-with-properties (table &key category (sort t) &allow-other-keys)\n  \"Create completion TABLE with properties.\nCATEGORY is the optional completion category.\nSORT should be nil to disable sorting.\"\n  (if (or (not table) (and (not category) sort))\n      table\n    (let ((metadata `(metadata\n                      ,@(and category `((category . ,category)))\n                      ,@(and (not sort) '((display-sort-function . identity)\n                                          (cycle-sort-function . identity))))))\n      (lambda (str pred action)\n        (if (eq action 'metadata)\n            metadata\n          (complete-with-action action table str pred))))))\n\n(defun php-complete--cape-bounds (thing)\n  \"Return bounds of THING.\"\n  (or (bounds-of-thing-at-point thing) (cons (point) (point))))\n\n(defun php-complete--cape-interactive (capf)\n  \"Complete with CAPF.\"\n  (let ((completion-at-point-functions (list capf)))\n    (or (completion-at-point) (user-error \"%s: No completions\" capf))))\n\f\n;;; Variables:\n(defvar php-complete--functions-cache (make-hash-table :test #'equal))\n\f\n;;; Data source functions:\n(defun php-complete--functions ()\n  \"Return PHP function names.\"\n  (let* ((modules (sort php-complete-function-modules #'string<))\n         (functions (gethash modules php-complete--functions-cache)))\n    (unless functions\n      (setq functions (sort (cl-loop for module in modules\n                                     append (assq module php-defs-functions-alist))\n                            #'string<))\n      (puthash modules functions php-complete--functions-cache))\n    functions))\n\f\n;;; Compiletion function:\n\n;;;###autoload\n(defun php-complete-complete-function (&optional interactive)\n  \"Complete PHP keyword at point.\n\nIf INTERACTIVE is nil the function acts like a capf.\"\n  (interactive (list t))\n  (if interactive\n      (php-complete--cape-interactive #'php-complete-complete-function)\n    (let ((bounds (php-complete--cape-bounds 'symbol))\n          (tokens (nreverse (php-leading-tokens 2))))\n      `(,(car bounds) ,(cdr bounds)\n        ,(php-complete--cape-table-with-properties\n          (unless (or (member (nth 0 tokens) '(\"->\" \"::\"))\n                      (string-prefix-p \"$\" (nth 1 tokens)))\n            (php-complete--functions))\n          :category 'cape-keyword)\n        :annotation-function (lambda (_) \" PHP functions\")\n        :company-kind (lambda (_) 'keyword)\n        :exclusive 'no))))\n\n(provide 'php-complete)\n;;; php-complete.el ends here\n"
  },
  {
    "path": "lisp/php-defs.el",
    "content": ";;; php-defs.el --- Provide PHP keyword definitions  -*- lexical-binding: t; -*-\n\n;; Copyright (C) 2023  Friends of Emacs-PHP development\n\n;; Author: USAMI Kenta <tadsan@zonu.me>\n;; Created: 5 Mar 2022\n;; Version: 1.26.1\n;; Keywords: languages, php\n\n;; This program is free software; you can redistribute it and/or modify\n;; it under the terms of the GNU General Public License as published by\n;; the Free Software Foundation, either version 3 of the License, or\n;; (at your option) any later version.\n\n;; This program is distributed in the hope that it will be useful,\n;; but WITHOUT ANY WARRANTY; without even the implied warranty of\n;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;; GNU General Public License for more details.\n\n;; You should have received a copy of the GNU General Public License\n;; along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n;;; Commentary:\n\n;; This file provides common functions for PHP codes.\n\n;;; Code:\n\n(defvar php-defs-functions-alist\n  '((apache\n     \"apache_child_terminate\"\n     \"apache_get_modules\"\n     \"apache_get_version\"\n     \"apache_getenv\"\n     \"apache_lookup_uri\"\n     \"apache_note\"\n     \"apache_request_headers\"\n     \"apache_response_headers\"\n     \"apache_setenv\"\n     \"virtual\")\n    (apcu\n     \"apcu_add\"\n     \"apcu_cache_info\"\n     \"apcu_cas\"\n     \"apcu_clear_cache\"\n     \"apcu_dec\"\n     \"apcu_delete\"\n     \"apcu_enabled\"\n     \"apcu_entry\"\n     \"apcu_exists\"\n     \"apcu_fetch\"\n     \"apcu_inc\"\n     \"apcu_key_info\"\n     \"apcu_sma_info\"\n     \"apcu_store\")\n    (bcmath\n     \"bcadd\"\n     \"bccomp\"\n     \"bcdiv\"\n     \"bcmod\"\n     \"bcmul\"\n     \"bcpow\"\n     \"bcpowmod\"\n     \"bcscale\"\n     \"bcsqrt\"\n     \"bcsub\")\n    (bzip2\n     \"bzclose\"\n     \"bzcompress\"\n     \"bzdecompress\"\n     \"bzerrno\"\n     \"bzerror\"\n     \"bzerrstr\"\n     \"bzflush\"\n     \"bzopen\"\n     \"bzread\"\n     \"bzwrite\")\n    (calendar\n     \"cal_days_in_month\"\n     \"cal_from_jd\"\n     \"cal_info\"\n     \"cal_to_jd\"\n     \"easter_date\"\n     \"easter_days\"\n     \"frenchtojd\"\n     \"gregoriantojd\"\n     \"jddayofweek\"\n     \"jdmonthname\"\n     \"jdtofrench\"\n     \"jdtogregorian\"\n     \"jdtojewish\"\n     \"jdtojulian\"\n     \"jdtounix\"\n     \"jewishtojd\"\n     \"unixtojd\")\n    (com_dotnet\n     \"com_create_guid\"\n     \"com_event_sink\"\n     \"com_get_active_object\"\n     \"com_load_typelib\"\n     \"com_message_pump\"\n     \"com_print_typeinfo\"\n     \"variant_abs\"\n     \"variant_add\"\n     \"variant_and\"\n     \"variant_cast\"\n     \"variant_cat\"\n     \"variant_cmp\"\n     \"variant_date_from_timestamp\"\n     \"variant_date_to_timestamp\"\n     \"variant_div\"\n     \"variant_eqv\"\n     \"variant_fix\"\n     \"variant_get_type\"\n     \"variant_idiv\"\n     \"variant_imp\"\n     \"variant_int\"\n     \"variant_mod\"\n     \"variant_mul\"\n     \"variant_neg\"\n     \"variant_not\"\n     \"variant_or\"\n     \"variant_pow\"\n     \"variant_round\"\n     \"variant_set\"\n     \"variant_set_type\"\n     \"variant_sub\"\n     \"variant_xor\")\n    (commonmark\n     \"CommonMark\\\\Parse\"\n     \"CommonMark\\\\Render\"\n     \"CommonMark\\\\Render\\\\HTML\"\n     \"CommonMark\\\\Render\\\\Latex\"\n     \"CommonMark\\\\Render\\\\Man\"\n     \"CommonMark\\\\Render\\\\XML\")\n    (componere\n     \"Componere\\\\cast\"\n     \"Componere\\\\cast_by_ref\")\n    (core\n     \"abs\"\n     \"acos\"\n     \"acosh\"\n     \"addcslashes\"\n     \"addslashes\"\n     \"array_change_key_case\"\n     \"array_chunk\"\n     \"array_column\"\n     \"array_combine\"\n     \"array_count_values\"\n     \"array_diff\"\n     \"array_diff_assoc\"\n     \"array_diff_key\"\n     \"array_diff_uassoc\"\n     \"array_diff_ukey\"\n     \"array_fill\"\n     \"array_fill_keys\"\n     \"array_filter\"\n     \"array_flip\"\n     \"array_intersect\"\n     \"array_intersect_assoc\"\n     \"array_intersect_key\"\n     \"array_intersect_uassoc\"\n     \"array_intersect_ukey\"\n     \"array_is_list\"\n     \"array_key_exists\"\n     \"array_key_first\"\n     \"array_key_last\"\n     \"array_keys\"\n     \"array_map\"\n     \"array_merge\"\n     \"array_merge_recursive\"\n     \"array_multisort\"\n     \"array_pad\"\n     \"array_pop\"\n     \"array_product\"\n     \"array_push\"\n     \"array_rand\"\n     \"array_reduce\"\n     \"array_replace\"\n     \"array_replace_recursive\"\n     \"array_reverse\"\n     \"array_search\"\n     \"array_shift\"\n     \"array_slice\"\n     \"array_splice\"\n     \"array_sum\"\n     \"array_udiff\"\n     \"array_udiff_assoc\"\n     \"array_udiff_uassoc\"\n     \"array_uintersect\"\n     \"array_uintersect_assoc\"\n     \"array_uintersect_uassoc\"\n     \"array_unique\"\n     \"array_unshift\"\n     \"array_values\"\n     \"array_walk\"\n     \"array_walk_recursive\"\n     \"arsort\"\n     \"asin\"\n     \"asinh\"\n     \"asort\"\n     \"assert_options\"\n     \"atan\"\n     \"atan2\"\n     \"atanh\"\n     \"base64_decode\"\n     \"base64_encode\"\n     \"base_convert\"\n     \"basename\"\n     \"bin2hex\"\n     \"bindec\"\n     \"boolval\"\n     \"call_user_func\"\n     \"call_user_func_array\"\n     \"ceil\"\n     \"chdir\"\n     \"checkdate\"\n     \"checkdnsrr\"\n     \"chgrp\"\n     \"chmod\"\n     \"chop\"\n     \"chown\"\n     \"chr\"\n     \"chroot\"\n     \"chunk_split\"\n     \"class_alias\"\n     \"class_exists\"\n     \"class_implements\"\n     \"class_parents\"\n     \"class_uses\"\n     \"clearstatcache\"\n     \"cli_get_process_title\"\n     \"cli_set_process_title\"\n     \"closedir\"\n     \"closelog\"\n     \"compact\"\n     \"connection_aborted\"\n     \"connection_status\"\n     \"constant\"\n     \"convert_cyr_string\"\n     \"convert_uudecode\"\n     \"convert_uuencode\"\n     \"copy\"\n     \"cos\"\n     \"cosh\"\n     \"count\"\n     \"count_chars\"\n     \"crc32\"\n     \"create_function\"\n     \"crypt\"\n     \"ctype_alnum\"\n     \"ctype_alpha\"\n     \"ctype_cntrl\"\n     \"ctype_digit\"\n     \"ctype_graph\"\n     \"ctype_lower\"\n     \"ctype_print\"\n     \"ctype_punct\"\n     \"ctype_space\"\n     \"ctype_upper\"\n     \"ctype_xdigit\"\n     \"current\"\n     \"date\"\n     \"date_add\"\n     \"date_create\"\n     \"date_create_from_format\"\n     \"date_create_immutable\"\n     \"date_create_immutable_from_format\"\n     \"date_date_set\"\n     \"date_default_timezone_get\"\n     \"date_default_timezone_set\"\n     \"date_diff\"\n     \"date_format\"\n     \"date_get_last_errors\"\n     \"date_interval_create_from_date_string\"\n     \"date_interval_format\"\n     \"date_isodate_set\"\n     \"date_modify\"\n     \"date_offset_get\"\n     \"date_parse\"\n     \"date_parse_from_format\"\n     \"date_sub\"\n     \"date_sun_info\"\n     \"date_sunrise\"\n     \"date_sunset\"\n     \"date_time_set\"\n     \"date_timestamp_get\"\n     \"date_timestamp_set\"\n     \"date_timezone_get\"\n     \"date_timezone_set\"\n     \"debug_backtrace\"\n     \"debug_print_backtrace\"\n     \"debug_zval_dump\"\n     \"decbin\"\n     \"dechex\"\n     \"decoct\"\n     \"define\"\n     \"defined\"\n     \"deg2rad\"\n     \"delete\"\n     \"die\"\n     \"dir\"\n     \"dirname\"\n     \"disk_free_space\"\n     \"disk_total_space\"\n     \"diskfreespace\"\n     \"dl\"\n     \"dns_check_record\"\n     \"dns_get_mx\"\n     \"dns_get_record\"\n     \"doubleval\"\n     \"each\"\n     \"enum_exists\"\n     \"error_clear_last\"\n     \"error_get_last\"\n     \"error_log\"\n     \"error_reporting\"\n     \"escapeshellarg\"\n     \"escapeshellcmd\"\n     \"eval\"\n     \"exec\"\n     \"exit\"\n     \"exp\"\n     \"explode\"\n     \"expm1\"\n     \"extension_loaded\"\n     \"extract\"\n     \"fastcgi_finish_request\"\n     \"fclose\"\n     \"fdatasync\"\n     \"fdiv\"\n     \"feof\"\n     \"fflush\"\n     \"fgetc\"\n     \"fgetcsv\"\n     \"fgets\"\n     \"fgetss\"\n     \"file\"\n     \"file_exists\"\n     \"file_get_contents\"\n     \"file_put_contents\"\n     \"fileatime\"\n     \"filectime\"\n     \"filegroup\"\n     \"fileinode\"\n     \"filemtime\"\n     \"fileowner\"\n     \"fileperms\"\n     \"filesize\"\n     \"filetype\"\n     \"filter_has_var\"\n     \"filter_id\"\n     \"filter_input\"\n     \"filter_input_array\"\n     \"filter_list\"\n     \"filter_var\"\n     \"filter_var_array\"\n     \"finfo_buffer\"\n     \"finfo_close\"\n     \"finfo_file\"\n     \"finfo_open\"\n     \"finfo_set_flags\"\n     \"floatval\"\n     \"flock\"\n     \"floor\"\n     \"flush\"\n     \"fmod\"\n     \"fnmatch\"\n     \"fopen\"\n     \"forward_static_call\"\n     \"forward_static_call_array\"\n     \"fpassthru\"\n     \"fprintf\"\n     \"fputcsv\"\n     \"fputs\"\n     \"fread\"\n     \"fscanf\"\n     \"fseek\"\n     \"fsockopen\"\n     \"fstat\"\n     \"fsync\"\n     \"ftell\"\n     \"ftruncate\"\n     \"func_get_arg\"\n     \"func_get_args\"\n     \"func_num_args\"\n     \"function_exists\"\n     \"fwrite\"\n     \"gc_collect_cycles\"\n     \"gc_disable\"\n     \"gc_enable\"\n     \"gc_enabled\"\n     \"gc_mem_caches\"\n     \"gc_status\"\n     \"get_browser\"\n     \"get_called_class\"\n     \"get_cfg_var\"\n     \"get_class\"\n     \"get_class_methods\"\n     \"get_class_vars\"\n     \"get_current_user\"\n     \"get_debug_type\"\n     \"get_declared_classes\"\n     \"get_declared_interfaces\"\n     \"get_declared_traits\"\n     \"get_defined_constants\"\n     \"get_defined_functions\"\n     \"get_defined_vars\"\n     \"get_extension_funcs\"\n     \"get_headers\"\n     \"get_html_translation_table\"\n     \"get_include_path\"\n     \"get_included_files\"\n     \"get_loaded_extensions\"\n     \"get_magic_quotes_gpc\"\n     \"get_magic_quotes_runtime\"\n     \"get_mangled_object_vars\"\n     \"get_meta_tags\"\n     \"get_object_vars\"\n     \"get_parent_class\"\n     \"get_required_files\"\n     \"get_resource_id\"\n     \"get_resource_type\"\n     \"get_resources\"\n     \"getallheaders\"\n     \"getcwd\"\n     \"getdate\"\n     \"getenv\"\n     \"gethostbyaddr\"\n     \"gethostbyname\"\n     \"gethostbynamel\"\n     \"gethostname\"\n     \"getlastmod\"\n     \"getmxrr\"\n     \"getmygid\"\n     \"getmyinode\"\n     \"getmypid\"\n     \"getmyuid\"\n     \"getopt\"\n     \"getprotobyname\"\n     \"getprotobynumber\"\n     \"getrandmax\"\n     \"getrusage\"\n     \"getservbyname\"\n     \"getservbyport\"\n     \"gettimeofday\"\n     \"gettype\"\n     \"glob\"\n     \"gmdate\"\n     \"gmmktime\"\n     \"gmstrftime\"\n     \"hash\"\n     \"hash_algos\"\n     \"hash_copy\"\n     \"hash_equals\"\n     \"hash_file\"\n     \"hash_final\"\n     \"hash_hkdf\"\n     \"hash_hmac\"\n     \"hash_hmac_algos\"\n     \"hash_hmac_file\"\n     \"hash_init\"\n     \"hash_pbkdf2\"\n     \"hash_update\"\n     \"hash_update_file\"\n     \"hash_update_stream\"\n     \"header\"\n     \"header_register_callback\"\n     \"header_remove\"\n     \"headers_list\"\n     \"headers_sent\"\n     \"hebrev\"\n     \"hebrevc\"\n     \"hex2bin\"\n     \"hexdec\"\n     \"highlight_file\"\n     \"highlight_string\"\n     \"hrtime\"\n     \"html_entity_decode\"\n     \"htmlentities\"\n     \"htmlspecialchars\"\n     \"htmlspecialchars_decode\"\n     \"http_build_query\"\n     \"http_response_code\"\n     \"hypot\"\n     \"idate\"\n     \"ignore_user_abort\"\n     \"implode\"\n     \"in_array\"\n     \"inet_ntop\"\n     \"inet_pton\"\n     \"ini_alter\"\n     \"ini_get\"\n     \"ini_get_all\"\n     \"ini_restore\"\n     \"ini_set\"\n     \"intdiv\"\n     \"interface_exists\"\n     \"intval\"\n     \"ip2long\"\n     \"is_a\"\n     \"is_array\"\n     \"is_bool\"\n     \"is_callable\"\n     \"is_countable\"\n     \"is_dir\"\n     \"is_double\"\n     \"is_executable\"\n     \"is_file\"\n     \"is_finite\"\n     \"is_float\"\n     \"is_infinite\"\n     \"is_int\"\n     \"is_integer\"\n     \"is_iterable\"\n     \"is_link\"\n     \"is_long\"\n     \"is_nan\"\n     \"is_null\"\n     \"is_numeric\"\n     \"is_object\"\n     \"is_readable\"\n     \"is_resource\"\n     \"is_scalar\"\n     \"is_string\"\n     \"is_subclass_of\"\n     \"is_uploaded_file\"\n     \"is_writable\"\n     \"is_writeable\"\n     \"iterator_apply\"\n     \"iterator_count\"\n     \"iterator_to_array\"\n     \"join\"\n     \"json_decode\"\n     \"json_encode\"\n     \"json_last_error\"\n     \"json_last_error_msg\"\n     \"juliantojd\"\n     \"key\"\n     \"key_exists\"\n     \"krsort\"\n     \"ksort\"\n     \"lcfirst\"\n     \"lcg_value\"\n     \"lchgrp\"\n     \"lchown\"\n     \"levenshtein\"\n     \"link\"\n     \"linkinfo\"\n     \"list\"\n     \"localeconv\"\n     \"localtime\"\n     \"log\"\n     \"log10\"\n     \"log1p\"\n     \"long2ip\"\n     \"lstat\"\n     \"ltrim\"\n     \"mail\"\n     \"max\"\n     \"md5\"\n     \"md5_file\"\n     \"memory_get_peak_usage\"\n     \"memory_get_usage\"\n     \"metaphone\"\n     \"method_exists\"\n     \"microtime\"\n     \"mime_content_type\"\n     \"min\"\n     \"mkdir\"\n     \"mktime\"\n     \"money_format\"\n     \"move_uploaded_file\"\n     \"mt_getrandmax\"\n     \"mt_rand\"\n     \"mt_srand\"\n     \"natcasesort\"\n     \"natsort\"\n     \"net_get_interfaces\"\n     \"next\"\n     \"nl2br\"\n     \"nl_langinfo\"\n     \"number_format\"\n     \"ob_clean\"\n     \"ob_end_clean\"\n     \"ob_end_flush\"\n     \"ob_flush\"\n     \"ob_get_clean\"\n     \"ob_get_contents\"\n     \"ob_get_flush\"\n     \"ob_get_length\"\n     \"ob_get_level\"\n     \"ob_get_status\"\n     \"ob_gzhandler\"\n     \"ob_iconv_handler\"\n     \"ob_implicit_flush\"\n     \"ob_list_handlers\"\n     \"ob_start\"\n     \"ob_tidyhandler\"\n     \"octdec\"\n     \"opcache_compile_file\"\n     \"opcache_get_configuration\"\n     \"opcache_get_status\"\n     \"opcache_invalidate\"\n     \"opcache_is_script_cached\"\n     \"opcache_reset\"\n     \"opendir\"\n     \"openlog\"\n     \"ord\"\n     \"output_add_rewrite_var\"\n     \"output_reset_rewrite_vars\"\n     \"pack\"\n     \"parse_ini_file\"\n     \"parse_ini_string\"\n     \"parse_str\"\n     \"parse_url\"\n     \"passthru\"\n     \"password_algos\"\n     \"password_get_info\"\n     \"password_hash\"\n     \"password_needs_rehash\"\n     \"password_verify\"\n     \"pathinfo\"\n     \"pclose\"\n     \"pdo_drivers\"\n     \"pfsockopen\"\n     \"php_ini_loaded_file\"\n     \"php_ini_scanned_files\"\n     \"php_sapi_name\"\n     \"php_strip_whitespace\"\n     \"php_uname\"\n     \"phpcredits\"\n     \"phpdbg_break_file\"\n     \"phpdbg_break_function\"\n     \"phpdbg_break_method\"\n     \"phpdbg_break_next\"\n     \"phpdbg_clear\"\n     \"phpdbg_color\"\n     \"phpdbg_end_oplog\"\n     \"phpdbg_exec\"\n     \"phpdbg_get_executable\"\n     \"phpdbg_prompt\"\n     \"phpdbg_start_oplog\"\n     \"phpinfo\"\n     \"phpversion\"\n     \"pi\"\n     \"popen\"\n     \"pos\"\n     \"pow\"\n     \"preg_filter\"\n     \"preg_grep\"\n     \"preg_last_error\"\n     \"preg_last_error_msg\"\n     \"preg_match\"\n     \"preg_match_all\"\n     \"preg_quote\"\n     \"preg_replace\"\n     \"preg_replace_callback\"\n     \"preg_replace_callback_array\"\n     \"preg_split\"\n     \"prev\"\n     \"print_r\"\n     \"printf\"\n     \"proc_close\"\n     \"proc_get_status\"\n     \"proc_nice\"\n     \"proc_open\"\n     \"proc_terminate\"\n     \"property_exists\"\n     \"putenv\"\n     \"quoted_printable_decode\"\n     \"quoted_printable_encode\"\n     \"quotemeta\"\n     \"rad2deg\"\n     \"rand\"\n     \"random_bytes\"\n     \"random_int\"\n     \"range\"\n     \"rawurldecode\"\n     \"rawurlencode\"\n     \"readdir\"\n     \"readfile\"\n     \"readlink\"\n     \"realpath\"\n     \"realpath_cache_get\"\n     \"realpath_cache_size\"\n     \"register_shutdown_function\"\n     \"register_tick_function\"\n     \"rename\"\n     \"reset\"\n     \"restore_error_handler\"\n     \"restore_exception_handler\"\n     \"restore_include_path\"\n     \"rewind\"\n     \"rewinddir\"\n     \"rmdir\"\n     \"round\"\n     \"rsort\"\n     \"rtrim\"\n     \"sapi_windows_cp_conv\"\n     \"sapi_windows_cp_get\"\n     \"sapi_windows_cp_is_utf8\"\n     \"sapi_windows_cp_set\"\n     \"sapi_windows_generate_ctrl_event\"\n     \"sapi_windows_set_ctrl_handler\"\n     \"sapi_windows_vt100_support\"\n     \"scandir\"\n     \"seaslog_get_author\"\n     \"seaslog_get_version\"\n     \"serialize\"\n     \"session_abort\"\n     \"session_cache_expire\"\n     \"session_cache_limiter\"\n     \"session_commit\"\n     \"session_create_id\"\n     \"session_decode\"\n     \"session_destroy\"\n     \"session_encode\"\n     \"session_gc\"\n     \"session_get_cookie_params\"\n     \"session_id\"\n     \"session_module_name\"\n     \"session_name\"\n     \"session_regenerate_id\"\n     \"session_register_shutdown\"\n     \"session_reset\"\n     \"session_save_path\"\n     \"session_set_cookie_params\"\n     \"session_set_save_handler\"\n     \"session_start\"\n     \"session_status\"\n     \"session_unset\"\n     \"session_write_close\"\n     \"set_error_handler\"\n     \"set_exception_handler\"\n     \"set_file_buffer\"\n     \"set_include_path\"\n     \"set_time_limit\"\n     \"setcookie\"\n     \"setlocale\"\n     \"setrawcookie\"\n     \"settype\"\n     \"sha1\"\n     \"sha1_file\"\n     \"shell_exec\"\n     \"show_source\"\n     \"shuffle\"\n     \"similar_text\"\n     \"sin\"\n     \"sinh\"\n     \"sizeof\"\n     \"sleep\"\n     \"sort\"\n     \"soundex\"\n     \"spl_autoload\"\n     \"spl_autoload_call\"\n     \"spl_autoload_extensions\"\n     \"spl_autoload_functions\"\n     \"spl_autoload_register\"\n     \"spl_autoload_unregister\"\n     \"spl_classes\"\n     \"spl_object_hash\"\n     \"spl_object_id\"\n     \"sprintf\"\n     \"sqrt\"\n     \"srand\"\n     \"sscanf\"\n     \"stat\"\n     \"str_contains\"\n     \"str_ends_with\"\n     \"str_getcsv\"\n     \"str_ireplace\"\n     \"str_pad\"\n     \"str_repeat\"\n     \"str_replace\"\n     \"str_rot13\"\n     \"str_shuffle\"\n     \"str_split\"\n     \"str_starts_with\"\n     \"str_word_count\"\n     \"strcasecmp\"\n     \"strchr\"\n     \"strcmp\"\n     \"strcoll\"\n     \"strcspn\"\n     \"stream_bucket_append\"\n     \"stream_bucket_make_writeable\"\n     \"stream_bucket_new\"\n     \"stream_bucket_prepend\"\n     \"stream_context_create\"\n     \"stream_context_get_default\"\n     \"stream_context_get_options\"\n     \"stream_context_get_params\"\n     \"stream_context_set_default\"\n     \"stream_context_set_option\"\n     \"stream_context_set_params\"\n     \"stream_copy_to_stream\"\n     \"stream_filter_append\"\n     \"stream_filter_prepend\"\n     \"stream_filter_register\"\n     \"stream_filter_remove\"\n     \"stream_get_contents\"\n     \"stream_get_filters\"\n     \"stream_get_line\"\n     \"stream_get_meta_data\"\n     \"stream_get_transports\"\n     \"stream_get_wrappers\"\n     \"stream_is_local\"\n     \"stream_isatty\"\n     \"stream_notification_callback\"\n     \"stream_register_wrapper\"\n     \"stream_resolve_include_path\"\n     \"stream_select\"\n     \"stream_set_blocking\"\n     \"stream_set_chunk_size\"\n     \"stream_set_read_buffer\"\n     \"stream_set_timeout\"\n     \"stream_set_write_buffer\"\n     \"stream_socket_accept\"\n     \"stream_socket_client\"\n     \"stream_socket_enable_crypto\"\n     \"stream_socket_get_name\"\n     \"stream_socket_pair\"\n     \"stream_socket_recvfrom\"\n     \"stream_socket_sendto\"\n     \"stream_socket_server\"\n     \"stream_socket_shutdown\"\n     \"stream_supports_lock\"\n     \"stream_wrapper_register\"\n     \"stream_wrapper_restore\"\n     \"stream_wrapper_unregister\"\n     \"strftime\"\n     \"strip_tags\"\n     \"stripcslashes\"\n     \"stripos\"\n     \"stripslashes\"\n     \"stristr\"\n     \"strlen\"\n     \"strnatcasecmp\"\n     \"strnatcmp\"\n     \"strncasecmp\"\n     \"strncmp\"\n     \"strpbrk\"\n     \"strpos\"\n     \"strptime\"\n     \"strrchr\"\n     \"strrev\"\n     \"strripos\"\n     \"strrpos\"\n     \"strspn\"\n     \"strstr\"\n     \"strtok\"\n     \"strtolower\"\n     \"strtotime\"\n     \"strtoupper\"\n     \"strtr\"\n     \"strval\"\n     \"substr\"\n     \"substr_compare\"\n     \"substr_count\"\n     \"substr_replace\"\n     \"symlink\"\n     \"sys_get_temp_dir\"\n     \"sys_getloadavg\"\n     \"syslog\"\n     \"system\"\n     \"tan\"\n     \"tanh\"\n     \"tempnam\"\n     \"time\"\n     \"time_nanosleep\"\n     \"time_sleep_until\"\n     \"timezone_abbreviations_list\"\n     \"timezone_identifiers_list\"\n     \"timezone_location_get\"\n     \"timezone_name_from_abbr\"\n     \"timezone_name_get\"\n     \"timezone_offset_get\"\n     \"timezone_open\"\n     \"timezone_transitions_get\"\n     \"timezone_version_get\"\n     \"tmpfile\"\n     \"token_get_all\"\n     \"token_name\"\n     \"touch\"\n     \"trait_exists\"\n     \"trigger_error\"\n     \"trim\"\n     \"uasort\"\n     \"ucfirst\"\n     \"ucwords\"\n     \"uksort\"\n     \"umask\"\n     \"uniqid\"\n     \"unlink\"\n     \"unpack\"\n     \"unregister_tick_function\"\n     \"unserialize\"\n     \"unset\"\n     \"urldecode\"\n     \"urlencode\"\n     \"user_error\"\n     \"usleep\"\n     \"usort\"\n     \"var_dump\"\n     \"var_export\"\n     \"version_compare\"\n     \"vfprintf\"\n     \"vprintf\"\n     \"vsprintf\"\n     \"wordwrap\"\n     \"zend_thread_id\"\n     \"zend_version\")\n    (cubrid\n     \"cubrid_affected_rows\"\n     \"cubrid_bind\"\n     \"cubrid_client_encoding\"\n     \"cubrid_close\"\n     \"cubrid_close_prepare\"\n     \"cubrid_close_request\"\n     \"cubrid_col_get\"\n     \"cubrid_col_size\"\n     \"cubrid_column_names\"\n     \"cubrid_column_types\"\n     \"cubrid_commit\"\n     \"cubrid_connect\"\n     \"cubrid_connect_with_url\"\n     \"cubrid_current_oid\"\n     \"cubrid_data_seek\"\n     \"cubrid_db_name\"\n     \"cubrid_disconnect\"\n     \"cubrid_drop\"\n     \"cubrid_errno\"\n     \"cubrid_error\"\n     \"cubrid_error_code\"\n     \"cubrid_error_code_facility\"\n     \"cubrid_error_msg\"\n     \"cubrid_execute\"\n     \"cubrid_fetch\"\n     \"cubrid_fetch_array\"\n     \"cubrid_fetch_assoc\"\n     \"cubrid_fetch_field\"\n     \"cubrid_fetch_lengths\"\n     \"cubrid_fetch_object\"\n     \"cubrid_fetch_row\"\n     \"cubrid_field_flags\"\n     \"cubrid_field_len\"\n     \"cubrid_field_name\"\n     \"cubrid_field_seek\"\n     \"cubrid_field_table\"\n     \"cubrid_field_type\"\n     \"cubrid_free_result\"\n     \"cubrid_get\"\n     \"cubrid_get_autocommit\"\n     \"cubrid_get_charset\"\n     \"cubrid_get_class_name\"\n     \"cubrid_get_client_info\"\n     \"cubrid_get_db_parameter\"\n     \"cubrid_get_query_timeout\"\n     \"cubrid_get_server_info\"\n     \"cubrid_insert_id\"\n     \"cubrid_is_instance\"\n     \"cubrid_list_dbs\"\n     \"cubrid_load_from_glo\"\n     \"cubrid_lob2_bind\"\n     \"cubrid_lob2_close\"\n     \"cubrid_lob2_export\"\n     \"cubrid_lob2_import\"\n     \"cubrid_lob2_new\"\n     \"cubrid_lob2_read\"\n     \"cubrid_lob2_seek\"\n     \"cubrid_lob2_seek64\"\n     \"cubrid_lob2_size\"\n     \"cubrid_lob2_size64\"\n     \"cubrid_lob2_tell\"\n     \"cubrid_lob2_tell64\"\n     \"cubrid_lob2_write\"\n     \"cubrid_lob_close\"\n     \"cubrid_lob_export\"\n     \"cubrid_lob_get\"\n     \"cubrid_lob_send\"\n     \"cubrid_lob_size\"\n     \"cubrid_lock_read\"\n     \"cubrid_lock_write\"\n     \"cubrid_move_cursor\"\n     \"cubrid_new_glo\"\n     \"cubrid_next_result\"\n     \"cubrid_num_cols\"\n     \"cubrid_num_fields\"\n     \"cubrid_num_rows\"\n     \"cubrid_pconnect\"\n     \"cubrid_pconnect_with_url\"\n     \"cubrid_ping\"\n     \"cubrid_prepare\"\n     \"cubrid_put\"\n     \"cubrid_query\"\n     \"cubrid_real_escape_string\"\n     \"cubrid_result\"\n     \"cubrid_rollback\"\n     \"cubrid_save_to_glo\"\n     \"cubrid_schema\"\n     \"cubrid_send_glo\"\n     \"cubrid_seq_drop\"\n     \"cubrid_seq_insert\"\n     \"cubrid_seq_put\"\n     \"cubrid_set_add\"\n     \"cubrid_set_autocommit\"\n     \"cubrid_set_db_parameter\"\n     \"cubrid_set_drop\"\n     \"cubrid_set_query_timeout\"\n     \"cubrid_unbuffered_query\"\n     \"cubrid_version\")\n    (curl\n     \"curl_close\"\n     \"curl_copy_handle\"\n     \"curl_errno\"\n     \"curl_error\"\n     \"curl_escape\"\n     \"curl_exec\"\n     \"curl_file_create\"\n     \"curl_getinfo\"\n     \"curl_init\"\n     \"curl_multi_add_handle\"\n     \"curl_multi_close\"\n     \"curl_multi_errno\"\n     \"curl_multi_exec\"\n     \"curl_multi_getcontent\"\n     \"curl_multi_info_read\"\n     \"curl_multi_init\"\n     \"curl_multi_remove_handle\"\n     \"curl_multi_select\"\n     \"curl_multi_setopt\"\n     \"curl_multi_strerror\"\n     \"curl_pause\"\n     \"curl_reset\"\n     \"curl_setopt\"\n     \"curl_setopt_array\"\n     \"curl_share_close\"\n     \"curl_share_errno\"\n     \"curl_share_init\"\n     \"curl_share_setopt\"\n     \"curl_share_strerror\"\n     \"curl_strerror\"\n     \"curl_unescape\"\n     \"curl_version\")\n    (dba\n     \"dba_close\"\n     \"dba_delete\"\n     \"dba_exists\"\n     \"dba_fetch\"\n     \"dba_firstkey\"\n     \"dba_handlers\"\n     \"dba_insert\"\n     \"dba_key_split\"\n     \"dba_list\"\n     \"dba_nextkey\"\n     \"dba_open\"\n     \"dba_optimize\"\n     \"dba_popen\"\n     \"dba_replace\"\n     \"dba_sync\")\n    (dbase\n     \"dbase_add_record\"\n     \"dbase_close\"\n     \"dbase_create\"\n     \"dbase_delete_record\"\n     \"dbase_get_header_info\"\n     \"dbase_get_record\"\n     \"dbase_get_record_with_names\"\n     \"dbase_numfields\"\n     \"dbase_numrecords\"\n     \"dbase_open\"\n     \"dbase_pack\"\n     \"dbase_replace_record\")\n    (dio\n     \"dio_close\"\n     \"dio_fcntl\"\n     \"dio_open\"\n     \"dio_read\"\n     \"dio_seek\"\n     \"dio_stat\"\n     \"dio_tcsetattr\"\n     \"dio_truncate\"\n     \"dio_write\")\n    (eio\n     \"eio_busy\"\n     \"eio_cancel\"\n     \"eio_chmod\"\n     \"eio_chown\"\n     \"eio_close\"\n     \"eio_custom\"\n     \"eio_dup2\"\n     \"eio_event_loop\"\n     \"eio_fallocate\"\n     \"eio_fchmod\"\n     \"eio_fchown\"\n     \"eio_fdatasync\"\n     \"eio_fstat\"\n     \"eio_fstatvfs\"\n     \"eio_fsync\"\n     \"eio_ftruncate\"\n     \"eio_futime\"\n     \"eio_get_event_stream\"\n     \"eio_get_last_error\"\n     \"eio_grp\"\n     \"eio_grp_add\"\n     \"eio_grp_cancel\"\n     \"eio_grp_limit\"\n     \"eio_init\"\n     \"eio_link\"\n     \"eio_lstat\"\n     \"eio_mkdir\"\n     \"eio_mknod\"\n     \"eio_nop\"\n     \"eio_npending\"\n     \"eio_nready\"\n     \"eio_nreqs\"\n     \"eio_nthreads\"\n     \"eio_open\"\n     \"eio_poll\"\n     \"eio_read\"\n     \"eio_readahead\"\n     \"eio_readdir\"\n     \"eio_readlink\"\n     \"eio_realpath\"\n     \"eio_rename\"\n     \"eio_rmdir\"\n     \"eio_seek\"\n     \"eio_sendfile\"\n     \"eio_set_max_idle\"\n     \"eio_set_max_parallel\"\n     \"eio_set_max_poll_reqs\"\n     \"eio_set_max_poll_time\"\n     \"eio_set_min_parallel\"\n     \"eio_stat\"\n     \"eio_statvfs\"\n     \"eio_symlink\"\n     \"eio_sync\"\n     \"eio_sync_file_range\"\n     \"eio_syncfs\"\n     \"eio_truncate\"\n     \"eio_unlink\"\n     \"eio_utime\"\n     \"eio_write\")\n    (enchant\n     \"enchant_broker_describe\"\n     \"enchant_broker_dict_exists\"\n     \"enchant_broker_free\"\n     \"enchant_broker_free_dict\"\n     \"enchant_broker_get_dict_path\"\n     \"enchant_broker_get_error\"\n     \"enchant_broker_init\"\n     \"enchant_broker_list_dicts\"\n     \"enchant_broker_request_dict\"\n     \"enchant_broker_request_pwl_dict\"\n     \"enchant_broker_set_dict_path\"\n     \"enchant_broker_set_ordering\"\n     \"enchant_dict_add\"\n     \"enchant_dict_add_to_personal\"\n     \"enchant_dict_add_to_session\"\n     \"enchant_dict_check\"\n     \"enchant_dict_describe\"\n     \"enchant_dict_get_error\"\n     \"enchant_dict_is_added\"\n     \"enchant_dict_is_in_session\"\n     \"enchant_dict_quick_check\"\n     \"enchant_dict_store_replacement\"\n     \"enchant_dict_suggest\")\n    (exif\n     \"exif_imagetype\"\n     \"exif_read_data\"\n     \"exif_tagname\"\n     \"exif_thumbnail\"\n     \"read_exif_data\")\n    (expect\n     \"expect_expectl\"\n     \"expect_popen\")\n    (fann\n     \"fann_cascadetrain_on_data\"\n     \"fann_cascadetrain_on_file\"\n     \"fann_clear_scaling_params\"\n     \"fann_copy\"\n     \"fann_create_from_file\"\n     \"fann_create_shortcut\"\n     \"fann_create_shortcut_array\"\n     \"fann_create_sparse\"\n     \"fann_create_sparse_array\"\n     \"fann_create_standard\"\n     \"fann_create_standard_array\"\n     \"fann_create_train\"\n     \"fann_create_train_from_callback\"\n     \"fann_descale_input\"\n     \"fann_descale_output\"\n     \"fann_descale_train\"\n     \"fann_destroy\"\n     \"fann_destroy_train\"\n     \"fann_duplicate_train_data\"\n     \"fann_get_MSE\"\n     \"fann_get_activation_function\"\n     \"fann_get_activation_steepness\"\n     \"fann_get_bias_array\"\n     \"fann_get_bit_fail\"\n     \"fann_get_bit_fail_limit\"\n     \"fann_get_cascade_activation_functions\"\n     \"fann_get_cascade_activation_functions_count\"\n     \"fann_get_cascade_activation_steepnesses\"\n     \"fann_get_cascade_activation_steepnesses_count\"\n     \"fann_get_cascade_candidate_change_fraction\"\n     \"fann_get_cascade_candidate_limit\"\n     \"fann_get_cascade_candidate_stagnation_epochs\"\n     \"fann_get_cascade_max_cand_epochs\"\n     \"fann_get_cascade_max_out_epochs\"\n     \"fann_get_cascade_min_cand_epochs\"\n     \"fann_get_cascade_min_out_epochs\"\n     \"fann_get_cascade_num_candidate_groups\"\n     \"fann_get_cascade_num_candidates\"\n     \"fann_get_cascade_output_change_fraction\"\n     \"fann_get_cascade_output_stagnation_epochs\"\n     \"fann_get_cascade_weight_multiplier\"\n     \"fann_get_connection_array\"\n     \"fann_get_connection_rate\"\n     \"fann_get_errno\"\n     \"fann_get_errstr\"\n     \"fann_get_layer_array\"\n     \"fann_get_learning_momentum\"\n     \"fann_get_learning_rate\"\n     \"fann_get_network_type\"\n     \"fann_get_num_input\"\n     \"fann_get_num_layers\"\n     \"fann_get_num_output\"\n     \"fann_get_quickprop_decay\"\n     \"fann_get_quickprop_mu\"\n     \"fann_get_rprop_decrease_factor\"\n     \"fann_get_rprop_delta_max\"\n     \"fann_get_rprop_delta_min\"\n     \"fann_get_rprop_delta_zero\"\n     \"fann_get_rprop_increase_factor\"\n     \"fann_get_sarprop_step_error_shift\"\n     \"fann_get_sarprop_step_error_threshold_factor\"\n     \"fann_get_sarprop_temperature\"\n     \"fann_get_sarprop_weight_decay_shift\"\n     \"fann_get_total_connections\"\n     \"fann_get_total_neurons\"\n     \"fann_get_train_error_function\"\n     \"fann_get_train_stop_function\"\n     \"fann_get_training_algorithm\"\n     \"fann_init_weights\"\n     \"fann_length_train_data\"\n     \"fann_merge_train_data\"\n     \"fann_num_input_train_data\"\n     \"fann_num_output_train_data\"\n     \"fann_print_error\"\n     \"fann_randomize_weights\"\n     \"fann_read_train_from_file\"\n     \"fann_reset_MSE\"\n     \"fann_reset_errno\"\n     \"fann_reset_errstr\"\n     \"fann_run\"\n     \"fann_save\"\n     \"fann_save_train\"\n     \"fann_scale_input\"\n     \"fann_scale_input_train_data\"\n     \"fann_scale_output\"\n     \"fann_scale_output_train_data\"\n     \"fann_scale_train\"\n     \"fann_scale_train_data\"\n     \"fann_set_activation_function\"\n     \"fann_set_activation_function_hidden\"\n     \"fann_set_activation_function_layer\"\n     \"fann_set_activation_function_output\"\n     \"fann_set_activation_steepness\"\n     \"fann_set_activation_steepness_hidden\"\n     \"fann_set_activation_steepness_layer\"\n     \"fann_set_activation_steepness_output\"\n     \"fann_set_bit_fail_limit\"\n     \"fann_set_callback\"\n     \"fann_set_cascade_activation_functions\"\n     \"fann_set_cascade_activation_steepnesses\"\n     \"fann_set_cascade_candidate_change_fraction\"\n     \"fann_set_cascade_candidate_limit\"\n     \"fann_set_cascade_candidate_stagnation_epochs\"\n     \"fann_set_cascade_max_cand_epochs\"\n     \"fann_set_cascade_max_out_epochs\"\n     \"fann_set_cascade_min_cand_epochs\"\n     \"fann_set_cascade_min_out_epochs\"\n     \"fann_set_cascade_num_candidate_groups\"\n     \"fann_set_cascade_output_change_fraction\"\n     \"fann_set_cascade_output_stagnation_epochs\"\n     \"fann_set_cascade_weight_multiplier\"\n     \"fann_set_error_log\"\n     \"fann_set_input_scaling_params\"\n     \"fann_set_learning_momentum\"\n     \"fann_set_learning_rate\"\n     \"fann_set_output_scaling_params\"\n     \"fann_set_quickprop_decay\"\n     \"fann_set_quickprop_mu\"\n     \"fann_set_rprop_decrease_factor\"\n     \"fann_set_rprop_delta_max\"\n     \"fann_set_rprop_delta_min\"\n     \"fann_set_rprop_delta_zero\"\n     \"fann_set_rprop_increase_factor\"\n     \"fann_set_sarprop_step_error_shift\"\n     \"fann_set_sarprop_step_error_threshold_factor\"\n     \"fann_set_sarprop_temperature\"\n     \"fann_set_sarprop_weight_decay_shift\"\n     \"fann_set_scaling_params\"\n     \"fann_set_train_error_function\"\n     \"fann_set_train_stop_function\"\n     \"fann_set_training_algorithm\"\n     \"fann_set_weight\"\n     \"fann_set_weight_array\"\n     \"fann_shuffle_train_data\"\n     \"fann_subset_train_data\"\n     \"fann_test\"\n     \"fann_test_data\"\n     \"fann_train\"\n     \"fann_train_epoch\"\n     \"fann_train_on_data\"\n     \"fann_train_on_file\")\n    (fdf\n     \"fdf_add_doc_javascript\"\n     \"fdf_add_template\"\n     \"fdf_close\"\n     \"fdf_create\"\n     \"fdf_enum_values\"\n     \"fdf_errno\"\n     \"fdf_error\"\n     \"fdf_get_ap\"\n     \"fdf_get_attachment\"\n     \"fdf_get_encoding\"\n     \"fdf_get_file\"\n     \"fdf_get_flags\"\n     \"fdf_get_opt\"\n     \"fdf_get_status\"\n     \"fdf_get_value\"\n     \"fdf_get_version\"\n     \"fdf_header\"\n     \"fdf_next_field_name\"\n     \"fdf_open\"\n     \"fdf_open_string\"\n     \"fdf_remove_item\"\n     \"fdf_save\"\n     \"fdf_save_string\"\n     \"fdf_set_ap\"\n     \"fdf_set_encoding\"\n     \"fdf_set_file\"\n     \"fdf_set_flags\"\n     \"fdf_set_javascript_action\"\n     \"fdf_set_on_import_javascript\"\n     \"fdf_set_opt\"\n     \"fdf_set_status\"\n     \"fdf_set_submit_form_action\"\n     \"fdf_set_target_frame\"\n     \"fdf_set_value\"\n     \"fdf_set_version\")\n    (fpm\n     \"fpm_get_status\")\n    (ftp\n     \"ftp_alloc\"\n     \"ftp_append\"\n     \"ftp_cdup\"\n     \"ftp_chdir\"\n     \"ftp_chmod\"\n     \"ftp_close\"\n     \"ftp_connect\"\n     \"ftp_delete\"\n     \"ftp_exec\"\n     \"ftp_fget\"\n     \"ftp_fput\"\n     \"ftp_get\"\n     \"ftp_get_option\"\n     \"ftp_login\"\n     \"ftp_mdtm\"\n     \"ftp_mkdir\"\n     \"ftp_mlsd\"\n     \"ftp_nb_continue\"\n     \"ftp_nb_fget\"\n     \"ftp_nb_fput\"\n     \"ftp_nb_get\"\n     \"ftp_nb_put\"\n     \"ftp_nlist\"\n     \"ftp_pasv\"\n     \"ftp_put\"\n     \"ftp_pwd\"\n     \"ftp_quit\"\n     \"ftp_raw\"\n     \"ftp_rawlist\"\n     \"ftp_rename\"\n     \"ftp_rmdir\"\n     \"ftp_set_option\"\n     \"ftp_site\"\n     \"ftp_size\"\n     \"ftp_ssl_connect\"\n     \"ftp_systype\")\n    (gd\n     \"gd_info\"\n     \"getimagesize\"\n     \"getimagesizefromstring\"\n     \"image2wbmp\"\n     \"image_type_to_extension\"\n     \"image_type_to_mime_type\"\n     \"imageaffine\"\n     \"imageaffinematrixconcat\"\n     \"imageaffinematrixget\"\n     \"imagealphablending\"\n     \"imageantialias\"\n     \"imagearc\"\n     \"imageavif\"\n     \"imagebmp\"\n     \"imagechar\"\n     \"imagecharup\"\n     \"imagecolorallocate\"\n     \"imagecolorallocatealpha\"\n     \"imagecolorat\"\n     \"imagecolorclosest\"\n     \"imagecolorclosestalpha\"\n     \"imagecolorclosesthwb\"\n     \"imagecolordeallocate\"\n     \"imagecolorexact\"\n     \"imagecolorexactalpha\"\n     \"imagecolormatch\"\n     \"imagecolorresolve\"\n     \"imagecolorresolvealpha\"\n     \"imagecolorset\"\n     \"imagecolorsforindex\"\n     \"imagecolorstotal\"\n     \"imagecolortransparent\"\n     \"imageconvolution\"\n     \"imagecopy\"\n     \"imagecopymerge\"\n     \"imagecopymergegray\"\n     \"imagecopyresampled\"\n     \"imagecopyresized\"\n     \"imagecreate\"\n     \"imagecreatefromavif\"\n     \"imagecreatefrombmp\"\n     \"imagecreatefromgd\"\n     \"imagecreatefromgd2\"\n     \"imagecreatefromgd2part\"\n     \"imagecreatefromgif\"\n     \"imagecreatefromjpeg\"\n     \"imagecreatefrompng\"\n     \"imagecreatefromstring\"\n     \"imagecreatefromtga\"\n     \"imagecreatefromwbmp\"\n     \"imagecreatefromwebp\"\n     \"imagecreatefromxbm\"\n     \"imagecreatefromxpm\"\n     \"imagecreatetruecolor\"\n     \"imagecrop\"\n     \"imagecropauto\"\n     \"imagedashedline\"\n     \"imagedestroy\"\n     \"imageellipse\"\n     \"imagefill\"\n     \"imagefilledarc\"\n     \"imagefilledellipse\"\n     \"imagefilledpolygon\"\n     \"imagefilledrectangle\"\n     \"imagefilltoborder\"\n     \"imagefilter\"\n     \"imageflip\"\n     \"imagefontheight\"\n     \"imagefontwidth\"\n     \"imageftbbox\"\n     \"imagefttext\"\n     \"imagegammacorrect\"\n     \"imagegd\"\n     \"imagegd2\"\n     \"imagegetclip\"\n     \"imagegetinterpolation\"\n     \"imagegif\"\n     \"imagegrabscreen\"\n     \"imagegrabwindow\"\n     \"imageinterlace\"\n     \"imageistruecolor\"\n     \"imagejpeg\"\n     \"imagelayereffect\"\n     \"imageline\"\n     \"imageloadfont\"\n     \"imageopenpolygon\"\n     \"imagepalettecopy\"\n     \"imagepalettetotruecolor\"\n     \"imagepng\"\n     \"imagepolygon\"\n     \"imagerectangle\"\n     \"imageresolution\"\n     \"imagerotate\"\n     \"imagesavealpha\"\n     \"imagescale\"\n     \"imagesetbrush\"\n     \"imagesetclip\"\n     \"imagesetinterpolation\"\n     \"imagesetpixel\"\n     \"imagesetstyle\"\n     \"imagesetthickness\"\n     \"imagesettile\"\n     \"imagestring\"\n     \"imagestringup\"\n     \"imagesx\"\n     \"imagesy\"\n     \"imagetruecolortopalette\"\n     \"imagettfbbox\"\n     \"imagettftext\"\n     \"imagetypes\"\n     \"imagewbmp\"\n     \"imagewebp\"\n     \"imagexbm\"\n     \"iptcembed\"\n     \"iptcparse\")\n    (gearman\n     \"gearman_job_handle\"\n     \"gearman_job_status\")\n    (geoip\n     \"geoip_asnum_by_name\"\n     \"geoip_continent_code_by_name\"\n     \"geoip_country_code3_by_name\"\n     \"geoip_country_code_by_name\"\n     \"geoip_country_name_by_name\"\n     \"geoip_database_info\"\n     \"geoip_db_avail\"\n     \"geoip_db_filename\"\n     \"geoip_db_get_all_info\"\n     \"geoip_domain_by_name\"\n     \"geoip_id_by_name\"\n     \"geoip_isp_by_name\"\n     \"geoip_netspeedcell_by_name\"\n     \"geoip_org_by_name\"\n     \"geoip_record_by_name\"\n     \"geoip_region_by_name\"\n     \"geoip_region_name_by_code\"\n     \"geoip_setup_custom_directory\"\n     \"geoip_time_zone_by_country_and_region\")\n    (gettext\n     \"bind_textdomain_codeset\"\n     \"bindtextdomain\"\n     \"dcgettext\"\n     \"dcngettext\"\n     \"dgettext\"\n     \"dngettext\"\n     \"gettext\"\n     \"ngettext\"\n     \"textdomain\")\n    (gmp\n     \"gmp_abs\"\n     \"gmp_add\"\n     \"gmp_and\"\n     \"gmp_binomial\"\n     \"gmp_clrbit\"\n     \"gmp_cmp\"\n     \"gmp_com\"\n     \"gmp_div\"\n     \"gmp_div_q\"\n     \"gmp_div_qr\"\n     \"gmp_div_r\"\n     \"gmp_divexact\"\n     \"gmp_export\"\n     \"gmp_fact\"\n     \"gmp_gcd\"\n     \"gmp_gcdext\"\n     \"gmp_hamdist\"\n     \"gmp_import\"\n     \"gmp_init\"\n     \"gmp_intval\"\n     \"gmp_invert\"\n     \"gmp_jacobi\"\n     \"gmp_kronecker\"\n     \"gmp_lcm\"\n     \"gmp_legendre\"\n     \"gmp_mod\"\n     \"gmp_mul\"\n     \"gmp_neg\"\n     \"gmp_nextprime\"\n     \"gmp_or\"\n     \"gmp_perfect_power\"\n     \"gmp_perfect_square\"\n     \"gmp_popcount\"\n     \"gmp_pow\"\n     \"gmp_powm\"\n     \"gmp_prob_prime\"\n     \"gmp_random\"\n     \"gmp_random_bits\"\n     \"gmp_random_range\"\n     \"gmp_random_seed\"\n     \"gmp_root\"\n     \"gmp_rootrem\"\n     \"gmp_scan0\"\n     \"gmp_scan1\"\n     \"gmp_setbit\"\n     \"gmp_sign\"\n     \"gmp_sqrt\"\n     \"gmp_sqrtrem\"\n     \"gmp_strval\"\n     \"gmp_sub\"\n     \"gmp_testbit\"\n     \"gmp_xor\")\n    (gnupg\n     \"gnupg_adddecryptkey\"\n     \"gnupg_addencryptkey\"\n     \"gnupg_addsignkey\"\n     \"gnupg_cleardecryptkeys\"\n     \"gnupg_clearencryptkeys\"\n     \"gnupg_clearsignkeys\"\n     \"gnupg_decrypt\"\n     \"gnupg_decryptverify\"\n     \"gnupg_deletekey\"\n     \"gnupg_encrypt\"\n     \"gnupg_encryptsign\"\n     \"gnupg_export\"\n     \"gnupg_getengineinfo\"\n     \"gnupg_geterror\"\n     \"gnupg_geterrorinfo\"\n     \"gnupg_getprotocol\"\n     \"gnupg_gettrustlist\"\n     \"gnupg_import\"\n     \"gnupg_init\"\n     \"gnupg_keyinfo\"\n     \"gnupg_listsignatures\"\n     \"gnupg_setarmor\"\n     \"gnupg_seterrormode\"\n     \"gnupg_setsignmode\"\n     \"gnupg_sign\"\n     \"gnupg_verify\")\n    (ibase\n     \"fbird_add_user\"\n     \"fbird_affected_rows\"\n     \"fbird_backup\"\n     \"fbird_blob_add\"\n     \"fbird_blob_cancel\"\n     \"fbird_blob_close\"\n     \"fbird_blob_create\"\n     \"fbird_blob_echo\"\n     \"fbird_blob_get\"\n     \"fbird_blob_import\"\n     \"fbird_blob_info\"\n     \"fbird_blob_open\"\n     \"fbird_close\"\n     \"fbird_commit\"\n     \"fbird_commit_ret\"\n     \"fbird_connect\"\n     \"fbird_db_info\"\n     \"fbird_delete_user\"\n     \"fbird_drop_db\"\n     \"fbird_errcode\"\n     \"fbird_errmsg\"\n     \"fbird_execute\"\n     \"fbird_fetch_assoc\"\n     \"fbird_fetch_object\"\n     \"fbird_fetch_row\"\n     \"fbird_field_info\"\n     \"fbird_free_event_handler\"\n     \"fbird_free_query\"\n     \"fbird_free_result\"\n     \"fbird_gen_id\"\n     \"fbird_maintain_db\"\n     \"fbird_modify_user\"\n     \"fbird_name_result\"\n     \"fbird_num_fields\"\n     \"fbird_num_params\"\n     \"fbird_param_info\"\n     \"fbird_pconnect\"\n     \"fbird_prepare\"\n     \"fbird_query\"\n     \"fbird_restore\"\n     \"fbird_rollback\"\n     \"fbird_rollback_ret\"\n     \"fbird_server_info\"\n     \"fbird_service_attach\"\n     \"fbird_service_detach\"\n     \"fbird_set_event_handler\"\n     \"fbird_trans\"\n     \"fbird_wait_event\"\n     \"ibase_add_user\"\n     \"ibase_affected_rows\"\n     \"ibase_backup\"\n     \"ibase_blob_add\"\n     \"ibase_blob_cancel\"\n     \"ibase_blob_close\"\n     \"ibase_blob_create\"\n     \"ibase_blob_echo\"\n     \"ibase_blob_get\"\n     \"ibase_blob_import\"\n     \"ibase_blob_info\"\n     \"ibase_blob_open\"\n     \"ibase_close\"\n     \"ibase_commit\"\n     \"ibase_commit_ret\"\n     \"ibase_connect\"\n     \"ibase_db_info\"\n     \"ibase_delete_user\"\n     \"ibase_drop_db\"\n     \"ibase_errcode\"\n     \"ibase_errmsg\"\n     \"ibase_execute\"\n     \"ibase_fetch_assoc\"\n     \"ibase_fetch_object\"\n     \"ibase_fetch_row\"\n     \"ibase_field_info\"\n     \"ibase_free_event_handler\"\n     \"ibase_free_query\"\n     \"ibase_free_result\"\n     \"ibase_gen_id\"\n     \"ibase_maintain_db\"\n     \"ibase_modify_user\"\n     \"ibase_name_result\"\n     \"ibase_num_fields\"\n     \"ibase_num_params\"\n     \"ibase_param_info\"\n     \"ibase_pconnect\"\n     \"ibase_prepare\"\n     \"ibase_query\"\n     \"ibase_restore\"\n     \"ibase_rollback\"\n     \"ibase_rollback_ret\"\n     \"ibase_server_info\"\n     \"ibase_service_attach\"\n     \"ibase_service_detach\"\n     \"ibase_set_event_handler\"\n     \"ibase_trans\"\n     \"ibase_wait_event\")\n    (ibm_db2\n     \"db2_autocommit\"\n     \"db2_bind_param\"\n     \"db2_client_info\"\n     \"db2_close\"\n     \"db2_column_privileges\"\n     \"db2_columns\"\n     \"db2_commit\"\n     \"db2_conn_error\"\n     \"db2_conn_errormsg\"\n     \"db2_connect\"\n     \"db2_cursor_type\"\n     \"db2_escape_string\"\n     \"db2_exec\"\n     \"db2_execute\"\n     \"db2_fetch_array\"\n     \"db2_fetch_assoc\"\n     \"db2_fetch_both\"\n     \"db2_fetch_object\"\n     \"db2_fetch_row\"\n     \"db2_field_display_size\"\n     \"db2_field_name\"\n     \"db2_field_num\"\n     \"db2_field_precision\"\n     \"db2_field_scale\"\n     \"db2_field_type\"\n     \"db2_field_width\"\n     \"db2_foreign_keys\"\n     \"db2_free_result\"\n     \"db2_free_stmt\"\n     \"db2_get_option\"\n     \"db2_last_insert_id\"\n     \"db2_lob_read\"\n     \"db2_next_result\"\n     \"db2_num_fields\"\n     \"db2_num_rows\"\n     \"db2_pclose\"\n     \"db2_pconnect\"\n     \"db2_prepare\"\n     \"db2_primary_keys\"\n     \"db2_procedure_columns\"\n     \"db2_procedures\"\n     \"db2_result\"\n     \"db2_rollback\"\n     \"db2_server_info\"\n     \"db2_set_option\"\n     \"db2_special_columns\"\n     \"db2_statistics\"\n     \"db2_stmt_error\"\n     \"db2_stmt_errormsg\"\n     \"db2_table_privileges\"\n     \"db2_tables\")\n    (iconv\n     \"iconv\"\n     \"iconv_get_encoding\"\n     \"iconv_mime_decode\"\n     \"iconv_mime_decode_headers\"\n     \"iconv_mime_encode\"\n     \"iconv_set_encoding\"\n     \"iconv_strlen\"\n     \"iconv_strpos\"\n     \"iconv_strrpos\"\n     \"iconv_substr\")\n    (igbinary\n     \"igbinary_serialize\"\n     \"igbinary_unserialize\")\n    (imap\n     \"imap_8bit\"\n     \"imap_alerts\"\n     \"imap_append\"\n     \"imap_base64\"\n     \"imap_binary\"\n     \"imap_body\"\n     \"imap_bodystruct\"\n     \"imap_check\"\n     \"imap_clearflag_full\"\n     \"imap_close\"\n     \"imap_create\"\n     \"imap_createmailbox\"\n     \"imap_delete\"\n     \"imap_deletemailbox\"\n     \"imap_errors\"\n     \"imap_expunge\"\n     \"imap_fetch_overview\"\n     \"imap_fetchbody\"\n     \"imap_fetchheader\"\n     \"imap_fetchmime\"\n     \"imap_fetchstructure\"\n     \"imap_fetchtext\"\n     \"imap_gc\"\n     \"imap_get_quota\"\n     \"imap_get_quotaroot\"\n     \"imap_getacl\"\n     \"imap_getmailboxes\"\n     \"imap_getsubscribed\"\n     \"imap_header\"\n     \"imap_headerinfo\"\n     \"imap_headers\"\n     \"imap_last_error\"\n     \"imap_list\"\n     \"imap_listmailbox\"\n     \"imap_listscan\"\n     \"imap_listsubscribed\"\n     \"imap_lsub\"\n     \"imap_mail\"\n     \"imap_mail_compose\"\n     \"imap_mail_copy\"\n     \"imap_mail_move\"\n     \"imap_mailboxmsginfo\"\n     \"imap_mime_header_decode\"\n     \"imap_msgno\"\n     \"imap_mutf7_to_utf8\"\n     \"imap_num_msg\"\n     \"imap_num_recent\"\n     \"imap_open\"\n     \"imap_ping\"\n     \"imap_qprint\"\n     \"imap_rename\"\n     \"imap_renamemailbox\"\n     \"imap_reopen\"\n     \"imap_rfc822_parse_adrlist\"\n     \"imap_rfc822_parse_headers\"\n     \"imap_rfc822_write_address\"\n     \"imap_savebody\"\n     \"imap_scan\"\n     \"imap_scanmailbox\"\n     \"imap_search\"\n     \"imap_set_quota\"\n     \"imap_setacl\"\n     \"imap_setflag_full\"\n     \"imap_sort\"\n     \"imap_status\"\n     \"imap_subscribe\"\n     \"imap_thread\"\n     \"imap_timeout\"\n     \"imap_uid\"\n     \"imap_undelete\"\n     \"imap_unsubscribe\"\n     \"imap_utf7_decode\"\n     \"imap_utf7_encode\"\n     \"imap_utf8\"\n     \"imap_utf8_to_mutf7\")\n    (inotify\n     \"inotify_add_watch\"\n     \"inotify_init\"\n     \"inotify_queue_len\"\n     \"inotify_read\"\n     \"inotify_rm_watch\")\n    (intl\n     \"collator_asort\"\n     \"collator_compare\"\n     \"collator_create\"\n     \"collator_get_attribute\"\n     \"collator_get_error_code\"\n     \"collator_get_error_message\"\n     \"collator_get_locale\"\n     \"collator_get_sort_key\"\n     \"collator_get_strength\"\n     \"collator_set_attribute\"\n     \"collator_set_strength\"\n     \"collator_sort\"\n     \"collator_sort_with_sort_keys\"\n     \"datefmt_create\"\n     \"datefmt_format\"\n     \"datefmt_format_object\"\n     \"datefmt_get_calendar\"\n     \"datefmt_get_calendar_object\"\n     \"datefmt_get_datetype\"\n     \"datefmt_get_error_code\"\n     \"datefmt_get_error_message\"\n     \"datefmt_get_locale\"\n     \"datefmt_get_pattern\"\n     \"datefmt_get_timetype\"\n     \"datefmt_get_timezone\"\n     \"datefmt_get_timezone_id\"\n     \"datefmt_is_lenient\"\n     \"datefmt_localtime\"\n     \"datefmt_parse\"\n     \"datefmt_set_calendar\"\n     \"datefmt_set_lenient\"\n     \"datefmt_set_pattern\"\n     \"datefmt_set_timezone\"\n     \"grapheme_extract\"\n     \"grapheme_stripos\"\n     \"grapheme_stristr\"\n     \"grapheme_strlen\"\n     \"grapheme_strpos\"\n     \"grapheme_strripos\"\n     \"grapheme_strrpos\"\n     \"grapheme_strstr\"\n     \"grapheme_substr\"\n     \"idn_to_ascii\"\n     \"idn_to_utf8\"\n     \"intl_error_name\"\n     \"intl_get_error_code\"\n     \"intl_get_error_message\"\n     \"intl_is_failure\"\n     \"intlcal_get_error_code\"\n     \"intlcal_get_error_message\"\n     \"intltz_count_equivalent_ids\"\n     \"intltz_create_default\"\n     \"intltz_create_enumeration\"\n     \"intltz_create_time_zone\"\n     \"intltz_create_time_zone_id_enumeration\"\n     \"intltz_from_date_time_zone\"\n     \"intltz_get_canonical_id\"\n     \"intltz_get_display_name\"\n     \"intltz_get_dst_savings\"\n     \"intltz_get_equivalent_id\"\n     \"intltz_get_error_code\"\n     \"intltz_get_error_message\"\n     \"intltz_get_gmt\"\n     \"intltz_get_id\"\n     \"intltz_get_id_for_windows_id\"\n     \"intltz_get_offset\"\n     \"intltz_get_raw_offset\"\n     \"intltz_get_region\"\n     \"intltz_get_tz_data_version\"\n     \"intltz_get_unknown\"\n     \"intltz_get_windows_id\"\n     \"intltz_has_same_rules\"\n     \"intltz_to_date_time_zone\"\n     \"intltz_use_daylight_time\"\n     \"locale_accept_from_http\"\n     \"locale_canonicalize\"\n     \"locale_compose\"\n     \"locale_filter_matches\"\n     \"locale_get_all_variants\"\n     \"locale_get_default\"\n     \"locale_get_display_language\"\n     \"locale_get_display_name\"\n     \"locale_get_display_region\"\n     \"locale_get_display_script\"\n     \"locale_get_display_variant\"\n     \"locale_get_keywords\"\n     \"locale_get_primary_language\"\n     \"locale_get_region\"\n     \"locale_get_script\"\n     \"locale_lookup\"\n     \"locale_parse\"\n     \"locale_set_default\"\n     \"msgfmt_create\"\n     \"msgfmt_format\"\n     \"msgfmt_format_message\"\n     \"msgfmt_get_error_code\"\n     \"msgfmt_get_error_message\"\n     \"msgfmt_get_locale\"\n     \"msgfmt_get_pattern\"\n     \"msgfmt_parse\"\n     \"msgfmt_parse_message\"\n     \"msgfmt_set_pattern\"\n     \"normalizer_get_raw_decomposition\"\n     \"normalizer_is_normalized\"\n     \"normalizer_normalize\"\n     \"numfmt_create\"\n     \"numfmt_format\"\n     \"numfmt_format_currency\"\n     \"numfmt_get_attribute\"\n     \"numfmt_get_error_code\"\n     \"numfmt_get_error_message\"\n     \"numfmt_get_locale\"\n     \"numfmt_get_pattern\"\n     \"numfmt_get_symbol\"\n     \"numfmt_get_text_attribute\"\n     \"numfmt_parse\"\n     \"numfmt_parse_currency\"\n     \"numfmt_set_attribute\"\n     \"numfmt_set_pattern\"\n     \"numfmt_set_symbol\"\n     \"numfmt_set_text_attribute\"\n     \"resourcebundle_count\"\n     \"resourcebundle_create\"\n     \"resourcebundle_get\"\n     \"resourcebundle_get_error_code\"\n     \"resourcebundle_get_error_message\"\n     \"resourcebundle_locales\"\n     \"transliterator_create\"\n     \"transliterator_create_from_rules\"\n     \"transliterator_create_inverse\"\n     \"transliterator_get_error_code\"\n     \"transliterator_get_error_message\"\n     \"transliterator_list_ids\"\n     \"transliterator_transliterate\")\n    (language\n     \"__halt_compiler\"\n     \"array\"\n     \"assert\"\n     \"echo\"\n     \"empty\"\n     \"isset\"\n     \"print\")\n    (ldap\n     \"ldap_8859_to_t61\"\n     \"ldap_add\"\n     \"ldap_add_ext\"\n     \"ldap_bind\"\n     \"ldap_bind_ext\"\n     \"ldap_close\"\n     \"ldap_compare\"\n     \"ldap_connect\"\n     \"ldap_control_paged_result\"\n     \"ldap_control_paged_result_response\"\n     \"ldap_count_entries\"\n     \"ldap_count_references\"\n     \"ldap_delete\"\n     \"ldap_delete_ext\"\n     \"ldap_dn2ufn\"\n     \"ldap_err2str\"\n     \"ldap_errno\"\n     \"ldap_error\"\n     \"ldap_escape\"\n     \"ldap_exop\"\n     \"ldap_exop_passwd\"\n     \"ldap_exop_refresh\"\n     \"ldap_exop_whoami\"\n     \"ldap_explode_dn\"\n     \"ldap_first_attribute\"\n     \"ldap_first_entry\"\n     \"ldap_first_reference\"\n     \"ldap_free_result\"\n     \"ldap_get_attributes\"\n     \"ldap_get_dn\"\n     \"ldap_get_entries\"\n     \"ldap_get_option\"\n     \"ldap_get_values\"\n     \"ldap_get_values_len\"\n     \"ldap_list\"\n     \"ldap_mod_add\"\n     \"ldap_mod_add_ext\"\n     \"ldap_mod_del\"\n     \"ldap_mod_del_ext\"\n     \"ldap_mod_replace\"\n     \"ldap_mod_replace_ext\"\n     \"ldap_modify\"\n     \"ldap_modify_batch\"\n     \"ldap_next_attribute\"\n     \"ldap_next_entry\"\n     \"ldap_next_reference\"\n     \"ldap_parse_exop\"\n     \"ldap_parse_reference\"\n     \"ldap_parse_result\"\n     \"ldap_read\"\n     \"ldap_rename\"\n     \"ldap_rename_ext\"\n     \"ldap_sasl_bind\"\n     \"ldap_search\"\n     \"ldap_set_option\"\n     \"ldap_set_rebind_proc\"\n     \"ldap_sort\"\n     \"ldap_start_tls\"\n     \"ldap_t61_to_8859\"\n     \"ldap_unbind\")\n    (libxml\n     \"libxml_clear_errors\"\n     \"libxml_disable_entity_loader\"\n     \"libxml_get_errors\"\n     \"libxml_get_last_error\"\n     \"libxml_set_external_entity_loader\"\n     \"libxml_set_streams_context\"\n     \"libxml_use_internal_errors\")\n    (lzf\n     \"lzf_compress\"\n     \"lzf_decompress\"\n     \"lzf_optimized_for\")\n    (mailparse\n     \"mailparse_determine_best_xfer_encoding\"\n     \"mailparse_msg_create\"\n     \"mailparse_msg_extract_part\"\n     \"mailparse_msg_extract_part_file\"\n     \"mailparse_msg_extract_whole_part_file\"\n     \"mailparse_msg_free\"\n     \"mailparse_msg_get_part\"\n     \"mailparse_msg_get_part_data\"\n     \"mailparse_msg_get_structure\"\n     \"mailparse_msg_parse\"\n     \"mailparse_msg_parse_file\"\n     \"mailparse_rfc822_parse_addresses\"\n     \"mailparse_stream_encode\"\n     \"mailparse_uudecode_all\")\n    (mbstring\n     \"mb_check_encoding\"\n     \"mb_chr\"\n     \"mb_convert_case\"\n     \"mb_convert_encoding\"\n     \"mb_convert_kana\"\n     \"mb_convert_variables\"\n     \"mb_decode_mimeheader\"\n     \"mb_decode_numericentity\"\n     \"mb_detect_encoding\"\n     \"mb_detect_order\"\n     \"mb_encode_mimeheader\"\n     \"mb_encode_numericentity\"\n     \"mb_encoding_aliases\"\n     \"mb_ereg\"\n     \"mb_ereg_match\"\n     \"mb_ereg_replace\"\n     \"mb_ereg_replace_callback\"\n     \"mb_ereg_search\"\n     \"mb_ereg_search_getpos\"\n     \"mb_ereg_search_getregs\"\n     \"mb_ereg_search_init\"\n     \"mb_ereg_search_pos\"\n     \"mb_ereg_search_regs\"\n     \"mb_ereg_search_setpos\"\n     \"mb_eregi\"\n     \"mb_eregi_replace\"\n     \"mb_get_info\"\n     \"mb_http_input\"\n     \"mb_http_output\"\n     \"mb_internal_encoding\"\n     \"mb_language\"\n     \"mb_list_encodings\"\n     \"mb_ord\"\n     \"mb_output_handler\"\n     \"mb_parse_str\"\n     \"mb_preferred_mime_name\"\n     \"mb_regex_encoding\"\n     \"mb_regex_set_options\"\n     \"mb_scrub\"\n     \"mb_send_mail\"\n     \"mb_split\"\n     \"mb_str_split\"\n     \"mb_strcut\"\n     \"mb_strimwidth\"\n     \"mb_stripos\"\n     \"mb_stristr\"\n     \"mb_strlen\"\n     \"mb_strpos\"\n     \"mb_strrchr\"\n     \"mb_strrichr\"\n     \"mb_strripos\"\n     \"mb_strrpos\"\n     \"mb_strstr\"\n     \"mb_strtolower\"\n     \"mb_strtoupper\"\n     \"mb_strwidth\"\n     \"mb_substitute_character\"\n     \"mb_substr\"\n     \"mb_substr_count\")\n    (memcache\n     \"memcache_debug\")\n    (mongodb\n     \"MongoDB\\\\BSON\\\\fromJSON\"\n     \"MongoDB\\\\BSON\\\\fromPHP\"\n     \"MongoDB\\\\BSON\\\\toCanonicalExtendedJSON\"\n     \"MongoDB\\\\BSON\\\\toJSON\"\n     \"MongoDB\\\\BSON\\\\toPHP\"\n     \"MongoDB\\\\BSON\\\\toRelaxedExtendedJSON\"\n     \"MongoDB\\\\Driver\\\\Monitoring\\\\addSubscriber\"\n     \"MongoDB\\\\Driver\\\\Monitoring\\\\removeSubscriber\")\n    (mqseries\n     \"mqseries_back\"\n     \"mqseries_begin\"\n     \"mqseries_close\"\n     \"mqseries_cmit\"\n     \"mqseries_conn\"\n     \"mqseries_connx\"\n     \"mqseries_disc\"\n     \"mqseries_get\"\n     \"mqseries_inq\"\n     \"mqseries_open\"\n     \"mqseries_put\"\n     \"mqseries_put1\"\n     \"mqseries_set\"\n     \"mqseries_strerror\")\n    (mysql-obsolete\n     \"expression\"\n     \"getSession\"\n     \"mysql_affected_rows\"\n     \"mysql_client_encoding\"\n     \"mysql_close\"\n     \"mysql_connect\"\n     \"mysql_create_db\"\n     \"mysql_data_seek\"\n     \"mysql_db_name\"\n     \"mysql_db_query\"\n     \"mysql_drop_db\"\n     \"mysql_errno\"\n     \"mysql_error\"\n     \"mysql_escape_string\"\n     \"mysql_fetch_array\"\n     \"mysql_fetch_assoc\"\n     \"mysql_fetch_field\"\n     \"mysql_fetch_lengths\"\n     \"mysql_fetch_object\"\n     \"mysql_fetch_row\"\n     \"mysql_field_flags\"\n     \"mysql_field_len\"\n     \"mysql_field_name\"\n     \"mysql_field_seek\"\n     \"mysql_field_table\"\n     \"mysql_field_type\"\n     \"mysql_free_result\"\n     \"mysql_get_client_info\"\n     \"mysql_get_host_info\"\n     \"mysql_get_proto_info\"\n     \"mysql_get_server_info\"\n     \"mysql_info\"\n     \"mysql_insert_id\"\n     \"mysql_list_dbs\"\n     \"mysql_list_fields\"\n     \"mysql_list_processes\"\n     \"mysql_list_tables\"\n     \"mysql_num_fields\"\n     \"mysql_num_rows\"\n     \"mysql_pconnect\"\n     \"mysql_ping\"\n     \"mysql_query\"\n     \"mysql_real_escape_string\"\n     \"mysql_result\"\n     \"mysql_select_db\"\n     \"mysql_set_charset\"\n     \"mysql_stat\"\n     \"mysql_tablename\"\n     \"mysql_thread_id\"\n     \"mysql_unbuffered_query\")\n    (mysqli\n     \"mysqli_affected_rows\"\n     \"mysqli_autocommit\"\n     \"mysqli_begin_transaction\"\n     \"mysqli_change_user\"\n     \"mysqli_character_set_name\"\n     \"mysqli_close\"\n     \"mysqli_commit\"\n     \"mysqli_connect\"\n     \"mysqli_connect_errno\"\n     \"mysqli_connect_error\"\n     \"mysqli_data_seek\"\n     \"mysqli_debug\"\n     \"mysqli_dump_debug_info\"\n     \"mysqli_embedded_server_end\"\n     \"mysqli_embedded_server_start\"\n     \"mysqli_errno\"\n     \"mysqli_error\"\n     \"mysqli_error_list\"\n     \"mysqli_escape_string\"\n     \"mysqli_execute\"\n     \"mysqli_fetch_all\"\n     \"mysqli_fetch_array\"\n     \"mysqli_fetch_assoc\"\n     \"mysqli_fetch_column\"\n     \"mysqli_fetch_field\"\n     \"mysqli_fetch_field_direct\"\n     \"mysqli_fetch_fields\"\n     \"mysqli_fetch_lengths\"\n     \"mysqli_fetch_object\"\n     \"mysqli_fetch_row\"\n     \"mysqli_field_count\"\n     \"mysqli_field_seek\"\n     \"mysqli_field_tell\"\n     \"mysqli_free_result\"\n     \"mysqli_get_charset\"\n     \"mysqli_get_client_info\"\n     \"mysqli_get_client_stats\"\n     \"mysqli_get_client_version\"\n     \"mysqli_get_connection_stats\"\n     \"mysqli_get_host_info\"\n     \"mysqli_get_links_stats\"\n     \"mysqli_get_proto_info\"\n     \"mysqli_get_server_info\"\n     \"mysqli_get_server_version\"\n     \"mysqli_get_warnings\"\n     \"mysqli_info\"\n     \"mysqli_init\"\n     \"mysqli_insert_id\"\n     \"mysqli_kill\"\n     \"mysqli_more_results\"\n     \"mysqli_multi_query\"\n     \"mysqli_next_result\"\n     \"mysqli_num_fields\"\n     \"mysqli_num_rows\"\n     \"mysqli_options\"\n     \"mysqli_ping\"\n     \"mysqli_poll\"\n     \"mysqli_prepare\"\n     \"mysqli_query\"\n     \"mysqli_real_connect\"\n     \"mysqli_real_escape_string\"\n     \"mysqli_real_query\"\n     \"mysqli_reap_async_query\"\n     \"mysqli_refresh\"\n     \"mysqli_release_savepoint\"\n     \"mysqli_report\"\n     \"mysqli_rollback\"\n     \"mysqli_savepoint\"\n     \"mysqli_select_db\"\n     \"mysqli_set_charset\"\n     \"mysqli_set_opt\"\n     \"mysqli_sqlstate\"\n     \"mysqli_ssl_set\"\n     \"mysqli_stat\"\n     \"mysqli_stmt_affected_rows\"\n     \"mysqli_stmt_attr_get\"\n     \"mysqli_stmt_attr_set\"\n     \"mysqli_stmt_bind_param\"\n     \"mysqli_stmt_bind_result\"\n     \"mysqli_stmt_close\"\n     \"mysqli_stmt_data_seek\"\n     \"mysqli_stmt_errno\"\n     \"mysqli_stmt_error\"\n     \"mysqli_stmt_error_list\"\n     \"mysqli_stmt_execute\"\n     \"mysqli_stmt_fetch\"\n     \"mysqli_stmt_field_count\"\n     \"mysqli_stmt_free_result\"\n     \"mysqli_stmt_get_result\"\n     \"mysqli_stmt_get_warnings\"\n     \"mysqli_stmt_init\"\n     \"mysqli_stmt_insert_id\"\n     \"mysqli_stmt_more_results\"\n     \"mysqli_stmt_next_result\"\n     \"mysqli_stmt_num_rows\"\n     \"mysqli_stmt_param_count\"\n     \"mysqli_stmt_prepare\"\n     \"mysqli_stmt_reset\"\n     \"mysqli_stmt_result_metadata\"\n     \"mysqli_stmt_send_long_data\"\n     \"mysqli_stmt_sqlstate\"\n     \"mysqli_stmt_store_result\"\n     \"mysqli_store_result\"\n     \"mysqli_thread_id\"\n     \"mysqli_thread_safe\"\n     \"mysqli_use_result\"\n     \"mysqli_warning_count\")\n    (oauth\n     \"oauth_get_sbs\"\n     \"oauth_urlencode\")\n    (obsolete_7\n     \"__autoload\"\n     \"end\"\n     \"ezmlm_hash\"\n     \"is_real\"\n     \"jpeg2wbmp\"\n     \"mcrypt_create_iv\"\n     \"mcrypt_decrypt\"\n     \"mcrypt_enc_get_algorithms_name\"\n     \"mcrypt_enc_get_block_size\"\n     \"mcrypt_enc_get_iv_size\"\n     \"mcrypt_enc_get_key_size\"\n     \"mcrypt_enc_get_modes_name\"\n     \"mcrypt_enc_get_supported_key_sizes\"\n     \"mcrypt_enc_is_block_algorithm\"\n     \"mcrypt_enc_is_block_algorithm_mode\"\n     \"mcrypt_enc_is_block_mode\"\n     \"mcrypt_enc_self_test\"\n     \"mcrypt_encrypt\"\n     \"mcrypt_generic\"\n     \"mcrypt_generic_deinit\"\n     \"mcrypt_generic_init\"\n     \"mcrypt_get_block_size\"\n     \"mcrypt_get_cipher_name\"\n     \"mcrypt_get_iv_size\"\n     \"mcrypt_get_key_size\"\n     \"mcrypt_list_algorithms\"\n     \"mcrypt_list_modes\"\n     \"mcrypt_module_close\"\n     \"mcrypt_module_get_algo_block_size\"\n     \"mcrypt_module_get_algo_key_size\"\n     \"mcrypt_module_get_supported_key_sizes\"\n     \"mcrypt_module_is_block_algorithm\"\n     \"mcrypt_module_is_block_algorithm_mode\"\n     \"mcrypt_module_is_block_mode\"\n     \"mcrypt_module_open\"\n     \"mcrypt_module_self_test\"\n     \"mdecrypt_generic\"\n     \"png2wbmp\"\n     \"wddx_add_vars\"\n     \"wddx_deserialize\"\n     \"wddx_packet_end\"\n     \"wddx_packet_start\"\n     \"wddx_serialize_value\"\n     \"wddx_serialize_vars\")\n    (obsolete_8\n     \"mhash\"\n     \"mhash_count\"\n     \"mhash_get_block_size\"\n     \"mhash_get_hash_name\"\n     \"mhash_keygen_s2k\"\n     \"utf8_decode\"\n     \"utf8_encode\"\n     \"zip_close\"\n     \"zip_entry_close\"\n     \"zip_entry_compressedsize\"\n     \"zip_entry_compressionmethod\"\n     \"zip_entry_filesize\"\n     \"zip_entry_name\"\n     \"zip_entry_open\"\n     \"zip_entry_read\"\n     \"zip_open\"\n     \"zip_read\")\n    (oci8\n     \"oci_bind_array_by_name\"\n     \"oci_bind_by_name\"\n     \"oci_cancel\"\n     \"oci_client_version\"\n     \"oci_close\"\n     \"oci_commit\"\n     \"oci_connect\"\n     \"oci_define_by_name\"\n     \"oci_error\"\n     \"oci_execute\"\n     \"oci_fetch\"\n     \"oci_fetch_all\"\n     \"oci_fetch_array\"\n     \"oci_fetch_assoc\"\n     \"oci_fetch_object\"\n     \"oci_fetch_row\"\n     \"oci_field_is_null\"\n     \"oci_field_name\"\n     \"oci_field_precision\"\n     \"oci_field_scale\"\n     \"oci_field_size\"\n     \"oci_field_type\"\n     \"oci_field_type_raw\"\n     \"oci_free_descriptor\"\n     \"oci_free_statement\"\n     \"oci_get_implicit_resultset\"\n     \"oci_internal_debug\"\n     \"oci_lob_copy\"\n     \"oci_lob_is_equal\"\n     \"oci_new_collection\"\n     \"oci_new_connect\"\n     \"oci_new_cursor\"\n     \"oci_new_descriptor\"\n     \"oci_num_fields\"\n     \"oci_num_rows\"\n     \"oci_parse\"\n     \"oci_password_change\"\n     \"oci_pconnect\"\n     \"oci_register_taf_callback\"\n     \"oci_result\"\n     \"oci_rollback\"\n     \"oci_server_version\"\n     \"oci_set_action\"\n     \"oci_set_call_timeout\"\n     \"oci_set_client_identifier\"\n     \"oci_set_client_info\"\n     \"oci_set_db_operation\"\n     \"oci_set_edition\"\n     \"oci_set_module_name\"\n     \"oci_set_prefetch\"\n     \"oci_set_prefetch_lob\"\n     \"oci_statement_type\"\n     \"oci_unregister_taf_callback\"\n     \"ocibindbyname\"\n     \"ocicancel\"\n     \"ocicloselob\"\n     \"ocicollappend\"\n     \"ocicollassign\"\n     \"ocicollassignelem\"\n     \"ocicollgetelem\"\n     \"ocicollmax\"\n     \"ocicollsize\"\n     \"ocicolltrim\"\n     \"ocicolumnisnull\"\n     \"ocicolumnname\"\n     \"ocicolumnprecision\"\n     \"ocicolumnscale\"\n     \"ocicolumnsize\"\n     \"ocicolumntype\"\n     \"ocicolumntyperaw\"\n     \"ocicommit\"\n     \"ocidefinebyname\"\n     \"ocierror\"\n     \"ociexecute\"\n     \"ocifetch\"\n     \"ocifetchinto\"\n     \"ocifetchstatement\"\n     \"ocifreecollection\"\n     \"ocifreecursor\"\n     \"ocifreedesc\"\n     \"ocifreestatement\"\n     \"ociinternaldebug\"\n     \"ociloadlob\"\n     \"ocilogoff\"\n     \"ocilogon\"\n     \"ocinewcollection\"\n     \"ocinewcursor\"\n     \"ocinewdescriptor\"\n     \"ocinlogon\"\n     \"ocinumcols\"\n     \"ociparse\"\n     \"ociplogon\"\n     \"ociresult\"\n     \"ocirollback\"\n     \"ocirowcount\"\n     \"ocisavelob\"\n     \"ocisavelobfile\"\n     \"ociserverversion\"\n     \"ocisetprefetch\"\n     \"ocistatementtype\"\n     \"ociwritelobtofile\"\n     \"ociwritetemporarylob\")\n    (odbc\n     \"odbc_autocommit\"\n     \"odbc_binmode\"\n     \"odbc_close\"\n     \"odbc_close_all\"\n     \"odbc_columnprivileges\"\n     \"odbc_columns\"\n     \"odbc_commit\"\n     \"odbc_connect\"\n     \"odbc_cursor\"\n     \"odbc_data_source\"\n     \"odbc_do\"\n     \"odbc_error\"\n     \"odbc_errormsg\"\n     \"odbc_exec\"\n     \"odbc_execute\"\n     \"odbc_fetch_array\"\n     \"odbc_fetch_into\"\n     \"odbc_fetch_object\"\n     \"odbc_fetch_row\"\n     \"odbc_field_len\"\n     \"odbc_field_name\"\n     \"odbc_field_num\"\n     \"odbc_field_precision\"\n     \"odbc_field_scale\"\n     \"odbc_field_type\"\n     \"odbc_foreignkeys\"\n     \"odbc_free_result\"\n     \"odbc_gettypeinfo\"\n     \"odbc_longreadlen\"\n     \"odbc_next_result\"\n     \"odbc_num_fields\"\n     \"odbc_num_rows\"\n     \"odbc_pconnect\"\n     \"odbc_prepare\"\n     \"odbc_primarykeys\"\n     \"odbc_procedurecolumns\"\n     \"odbc_procedures\"\n     \"odbc_result\"\n     \"odbc_result_all\"\n     \"odbc_rollback\"\n     \"odbc_setoption\"\n     \"odbc_specialcolumns\"\n     \"odbc_statistics\"\n     \"odbc_tableprivileges\"\n     \"odbc_tables\")\n    (openal\n     \"openal_buffer_create\"\n     \"openal_buffer_data\"\n     \"openal_buffer_destroy\"\n     \"openal_buffer_get\"\n     \"openal_buffer_loadwav\"\n     \"openal_context_create\"\n     \"openal_context_current\"\n     \"openal_context_destroy\"\n     \"openal_context_process\"\n     \"openal_context_suspend\"\n     \"openal_device_close\"\n     \"openal_device_open\"\n     \"openal_listener_get\"\n     \"openal_listener_set\"\n     \"openal_source_create\"\n     \"openal_source_destroy\"\n     \"openal_source_get\"\n     \"openal_source_pause\"\n     \"openal_source_play\"\n     \"openal_source_rewind\"\n     \"openal_source_set\"\n     \"openal_source_stop\"\n     \"openal_stream\")\n    (openssl\n     \"openssl_cipher_iv_length\"\n     \"openssl_cms_decrypt\"\n     \"openssl_cms_encrypt\"\n     \"openssl_cms_read\"\n     \"openssl_cms_sign\"\n     \"openssl_cms_verify\"\n     \"openssl_csr_export\"\n     \"openssl_csr_export_to_file\"\n     \"openssl_csr_get_public_key\"\n     \"openssl_csr_get_subject\"\n     \"openssl_csr_new\"\n     \"openssl_csr_sign\"\n     \"openssl_decrypt\"\n     \"openssl_dh_compute_key\"\n     \"openssl_digest\"\n     \"openssl_encrypt\"\n     \"openssl_error_string\"\n     \"openssl_free_key\"\n     \"openssl_get_cert_locations\"\n     \"openssl_get_cipher_methods\"\n     \"openssl_get_curve_names\"\n     \"openssl_get_md_methods\"\n     \"openssl_get_privatekey\"\n     \"openssl_get_publickey\"\n     \"openssl_open\"\n     \"openssl_pbkdf2\"\n     \"openssl_pkcs12_export\"\n     \"openssl_pkcs12_export_to_file\"\n     \"openssl_pkcs12_read\"\n     \"openssl_pkcs7_decrypt\"\n     \"openssl_pkcs7_encrypt\"\n     \"openssl_pkcs7_read\"\n     \"openssl_pkcs7_sign\"\n     \"openssl_pkcs7_verify\"\n     \"openssl_pkey_derive\"\n     \"openssl_pkey_export\"\n     \"openssl_pkey_export_to_file\"\n     \"openssl_pkey_free\"\n     \"openssl_pkey_get_details\"\n     \"openssl_pkey_get_private\"\n     \"openssl_pkey_get_public\"\n     \"openssl_pkey_new\"\n     \"openssl_private_decrypt\"\n     \"openssl_private_encrypt\"\n     \"openssl_public_decrypt\"\n     \"openssl_public_encrypt\"\n     \"openssl_random_pseudo_bytes\"\n     \"openssl_seal\"\n     \"openssl_sign\"\n     \"openssl_spki_export\"\n     \"openssl_spki_export_challenge\"\n     \"openssl_spki_new\"\n     \"openssl_spki_verify\"\n     \"openssl_verify\"\n     \"openssl_x509_check_private_key\"\n     \"openssl_x509_checkpurpose\"\n     \"openssl_x509_export\"\n     \"openssl_x509_export_to_file\"\n     \"openssl_x509_fingerprint\"\n     \"openssl_x509_free\"\n     \"openssl_x509_parse\"\n     \"openssl_x509_read\"\n     \"openssl_x509_verify\")\n    (parallel\n     \"parallel\\\\bootstrap\"\n     \"parallel\\\\run\")\n    (pcntl\n     \"pcntl_alarm\"\n     \"pcntl_async_signals\"\n     \"pcntl_errno\"\n     \"pcntl_exec\"\n     \"pcntl_fork\"\n     \"pcntl_get_last_error\"\n     \"pcntl_getpriority\"\n     \"pcntl_rfork\"\n     \"pcntl_setpriority\"\n     \"pcntl_signal\"\n     \"pcntl_signal_dispatch\"\n     \"pcntl_signal_get_handler\"\n     \"pcntl_sigprocmask\"\n     \"pcntl_sigtimedwait\"\n     \"pcntl_sigwaitinfo\"\n     \"pcntl_strerror\"\n     \"pcntl_unshare\"\n     \"pcntl_wait\"\n     \"pcntl_waitpid\"\n     \"pcntl_wexitstatus\"\n     \"pcntl_wifexited\"\n     \"pcntl_wifsignaled\"\n     \"pcntl_wifstopped\"\n     \"pcntl_wstopsig\"\n     \"pcntl_wtermsig\")\n    (pgsql\n     \"pg_affected_rows\"\n     \"pg_cancel_query\"\n     \"pg_client_encoding\"\n     \"pg_close\"\n     \"pg_connect\"\n     \"pg_connect_poll\"\n     \"pg_connection_busy\"\n     \"pg_connection_reset\"\n     \"pg_connection_status\"\n     \"pg_consume_input\"\n     \"pg_convert\"\n     \"pg_copy_from\"\n     \"pg_copy_to\"\n     \"pg_dbname\"\n     \"pg_delete\"\n     \"pg_end_copy\"\n     \"pg_escape_bytea\"\n     \"pg_escape_identifier\"\n     \"pg_escape_literal\"\n     \"pg_escape_string\"\n     \"pg_execute\"\n     \"pg_fetch_all\"\n     \"pg_fetch_all_columns\"\n     \"pg_fetch_array\"\n     \"pg_fetch_assoc\"\n     \"pg_fetch_object\"\n     \"pg_fetch_result\"\n     \"pg_fetch_row\"\n     \"pg_field_is_null\"\n     \"pg_field_name\"\n     \"pg_field_num\"\n     \"pg_field_prtlen\"\n     \"pg_field_size\"\n     \"pg_field_table\"\n     \"pg_field_type\"\n     \"pg_field_type_oid\"\n     \"pg_flush\"\n     \"pg_free_result\"\n     \"pg_get_notify\"\n     \"pg_get_pid\"\n     \"pg_get_result\"\n     \"pg_host\"\n     \"pg_insert\"\n     \"pg_last_error\"\n     \"pg_last_notice\"\n     \"pg_last_oid\"\n     \"pg_lo_close\"\n     \"pg_lo_create\"\n     \"pg_lo_export\"\n     \"pg_lo_import\"\n     \"pg_lo_open\"\n     \"pg_lo_read\"\n     \"pg_lo_read_all\"\n     \"pg_lo_seek\"\n     \"pg_lo_tell\"\n     \"pg_lo_truncate\"\n     \"pg_lo_unlink\"\n     \"pg_lo_write\"\n     \"pg_meta_data\"\n     \"pg_num_fields\"\n     \"pg_num_rows\"\n     \"pg_options\"\n     \"pg_parameter_status\"\n     \"pg_pconnect\"\n     \"pg_ping\"\n     \"pg_port\"\n     \"pg_prepare\"\n     \"pg_put_line\"\n     \"pg_query\"\n     \"pg_query_params\"\n     \"pg_result_error\"\n     \"pg_result_error_field\"\n     \"pg_result_seek\"\n     \"pg_result_status\"\n     \"pg_select\"\n     \"pg_send_execute\"\n     \"pg_send_prepare\"\n     \"pg_send_query\"\n     \"pg_send_query_params\"\n     \"pg_set_client_encoding\"\n     \"pg_set_error_verbosity\"\n     \"pg_socket\"\n     \"pg_trace\"\n     \"pg_transaction_status\"\n     \"pg_tty\"\n     \"pg_unescape_bytea\"\n     \"pg_untrace\"\n     \"pg_update\"\n     \"pg_version\")\n    (posix\n     \"posix_access\"\n     \"posix_ctermid\"\n     \"posix_errno\"\n     \"posix_get_last_error\"\n     \"posix_getcwd\"\n     \"posix_getegid\"\n     \"posix_geteuid\"\n     \"posix_getgid\"\n     \"posix_getgrgid\"\n     \"posix_getgrnam\"\n     \"posix_getgroups\"\n     \"posix_getlogin\"\n     \"posix_getpgid\"\n     \"posix_getpgrp\"\n     \"posix_getpid\"\n     \"posix_getppid\"\n     \"posix_getpwnam\"\n     \"posix_getpwuid\"\n     \"posix_getrlimit\"\n     \"posix_getsid\"\n     \"posix_getuid\"\n     \"posix_initgroups\"\n     \"posix_isatty\"\n     \"posix_kill\"\n     \"posix_mkfifo\"\n     \"posix_mknod\"\n     \"posix_setegid\"\n     \"posix_seteuid\"\n     \"posix_setgid\"\n     \"posix_setpgid\"\n     \"posix_setrlimit\"\n     \"posix_setsid\"\n     \"posix_setuid\"\n     \"posix_strerror\"\n     \"posix_times\"\n     \"posix_ttyname\"\n     \"posix_uname\")\n    (ps\n     \"ps_add_bookmark\"\n     \"ps_add_launchlink\"\n     \"ps_add_locallink\"\n     \"ps_add_note\"\n     \"ps_add_pdflink\"\n     \"ps_add_weblink\"\n     \"ps_arc\"\n     \"ps_arcn\"\n     \"ps_begin_page\"\n     \"ps_begin_pattern\"\n     \"ps_begin_template\"\n     \"ps_circle\"\n     \"ps_clip\"\n     \"ps_close\"\n     \"ps_close_image\"\n     \"ps_closepath\"\n     \"ps_closepath_stroke\"\n     \"ps_continue_text\"\n     \"ps_curveto\"\n     \"ps_delete\"\n     \"ps_end_page\"\n     \"ps_end_pattern\"\n     \"ps_end_template\"\n     \"ps_fill\"\n     \"ps_fill_stroke\"\n     \"ps_findfont\"\n     \"ps_get_buffer\"\n     \"ps_get_parameter\"\n     \"ps_get_value\"\n     \"ps_hyphenate\"\n     \"ps_include_file\"\n     \"ps_lineto\"\n     \"ps_makespotcolor\"\n     \"ps_moveto\"\n     \"ps_new\"\n     \"ps_open_file\"\n     \"ps_open_image\"\n     \"ps_open_image_file\"\n     \"ps_open_memory_image\"\n     \"ps_place_image\"\n     \"ps_rect\"\n     \"ps_restore\"\n     \"ps_rotate\"\n     \"ps_save\"\n     \"ps_scale\"\n     \"ps_set_border_color\"\n     \"ps_set_border_dash\"\n     \"ps_set_border_style\"\n     \"ps_set_info\"\n     \"ps_set_parameter\"\n     \"ps_set_text_pos\"\n     \"ps_set_value\"\n     \"ps_setcolor\"\n     \"ps_setdash\"\n     \"ps_setflat\"\n     \"ps_setfont\"\n     \"ps_setgray\"\n     \"ps_setlinecap\"\n     \"ps_setlinejoin\"\n     \"ps_setlinewidth\"\n     \"ps_setmiterlimit\"\n     \"ps_setoverprintmode\"\n     \"ps_setpolydash\"\n     \"ps_shading\"\n     \"ps_shading_pattern\"\n     \"ps_shfill\"\n     \"ps_show\"\n     \"ps_show2\"\n     \"ps_show_boxed\"\n     \"ps_show_xy\"\n     \"ps_show_xy2\"\n     \"ps_string_geometry\"\n     \"ps_stringwidth\"\n     \"ps_stroke\"\n     \"ps_symbol\"\n     \"ps_symbol_name\"\n     \"ps_symbol_width\"\n     \"ps_translate\")\n    (pspell\n     \"pspell_add_to_personal\"\n     \"pspell_add_to_session\"\n     \"pspell_check\"\n     \"pspell_clear_session\"\n     \"pspell_config_create\"\n     \"pspell_config_data_dir\"\n     \"pspell_config_dict_dir\"\n     \"pspell_config_ignore\"\n     \"pspell_config_mode\"\n     \"pspell_config_personal\"\n     \"pspell_config_repl\"\n     \"pspell_config_runtogether\"\n     \"pspell_config_save_repl\"\n     \"pspell_new\"\n     \"pspell_new_config\"\n     \"pspell_new_personal\"\n     \"pspell_save_wordlist\"\n     \"pspell_store_replacement\"\n     \"pspell_suggest\")\n    (radius\n     \"radius_acct_open\"\n     \"radius_add_server\"\n     \"radius_auth_open\"\n     \"radius_close\"\n     \"radius_config\"\n     \"radius_create_request\"\n     \"radius_cvt_addr\"\n     \"radius_cvt_int\"\n     \"radius_cvt_string\"\n     \"radius_demangle\"\n     \"radius_demangle_mppe_key\"\n     \"radius_get_attr\"\n     \"radius_get_tagged_attr_data\"\n     \"radius_get_tagged_attr_tag\"\n     \"radius_get_vendor_attr\"\n     \"radius_put_addr\"\n     \"radius_put_attr\"\n     \"radius_put_int\"\n     \"radius_put_string\"\n     \"radius_put_vendor_addr\"\n     \"radius_put_vendor_attr\"\n     \"radius_put_vendor_int\"\n     \"radius_put_vendor_string\"\n     \"radius_request_authenticator\"\n     \"radius_salt_encrypt_attr\"\n     \"radius_send_request\"\n     \"radius_server_secret\"\n     \"radius_strerror\")\n    (rar\n     \"rar_broken_is\"\n     \"rar_close\"\n     \"rar_comment_get\"\n     \"rar_entry_get\"\n     \"rar_list\"\n     \"rar_open\"\n     \"rar_solid_is\"\n     \"rar_wrapper_cache_stats\")\n    (readline\n     \"readline\"\n     \"readline_add_history\"\n     \"readline_callback_handler_install\"\n     \"readline_callback_handler_remove\"\n     \"readline_callback_read_char\"\n     \"readline_clear_history\"\n     \"readline_completion_function\"\n     \"readline_info\"\n     \"readline_list_history\"\n     \"readline_on_new_line\"\n     \"readline_read_history\"\n     \"readline_redisplay\"\n     \"readline_write_history\")\n    (recode\n     \"recode\"\n     \"recode_file\"\n     \"recode_string\")\n    (rpminfo\n     \"rpmaddtag\"\n     \"rpmdbinfo\"\n     \"rpmdbsearch\"\n     \"rpminfo\"\n     \"rpmvercmp\")\n    (rrd\n     \"rrd_create\"\n     \"rrd_error\"\n     \"rrd_fetch\"\n     \"rrd_first\"\n     \"rrd_graph\"\n     \"rrd_info\"\n     \"rrd_last\"\n     \"rrd_lastupdate\"\n     \"rrd_restore\"\n     \"rrd_tune\"\n     \"rrd_update\"\n     \"rrd_version\"\n     \"rrd_xport\"\n     \"rrdc_disconnect\")\n    (runkit7\n     \"runkit7_constant_add\"\n     \"runkit7_constant_redefine\"\n     \"runkit7_constant_remove\"\n     \"runkit7_function_add\"\n     \"runkit7_function_copy\"\n     \"runkit7_function_redefine\"\n     \"runkit7_function_remove\"\n     \"runkit7_function_rename\"\n     \"runkit7_import\"\n     \"runkit7_method_add\"\n     \"runkit7_method_copy\"\n     \"runkit7_method_redefine\"\n     \"runkit7_method_remove\"\n     \"runkit7_method_rename\"\n     \"runkit7_object_id\"\n     \"runkit7_superglobals\"\n     \"runkit7_zval_inspect\")\n    (scoutapm\n     \"scoutapm_get_calls\"\n     \"scoutapm_list_instrumented_functions\")\n    (shmop\n     \"shmop_close\"\n     \"shmop_delete\"\n     \"shmop_open\"\n     \"shmop_read\"\n     \"shmop_size\"\n     \"shmop_write\")\n    (simplexml\n     \"dom_import_simplexml\"\n     \"simplexml_import_dom\"\n     \"simplexml_load_file\"\n     \"simplexml_load_string\")\n    (smnp\n     \"snmp2_get\"\n     \"snmp2_getnext\"\n     \"snmp2_real_walk\"\n     \"snmp2_set\"\n     \"snmp2_walk\"\n     \"snmp3_get\"\n     \"snmp3_getnext\"\n     \"snmp3_real_walk\"\n     \"snmp3_set\"\n     \"snmp3_walk\"\n     \"snmp_get_quick_print\"\n     \"snmp_get_valueretrieval\"\n     \"snmp_read_mib\"\n     \"snmp_set_enum_print\"\n     \"snmp_set_oid_numeric_print\"\n     \"snmp_set_oid_output_format\"\n     \"snmp_set_quick_print\"\n     \"snmp_set_valueretrieval\"\n     \"snmpget\"\n     \"snmpgetnext\"\n     \"snmprealwalk\"\n     \"snmpset\"\n     \"snmpwalk\"\n     \"snmpwalkoid\")\n    (soap\n     \"is_soap_fault\"\n     \"use_soap_error_handler\")\n    (socket\n     \"socket_accept\"\n     \"socket_addrinfo_bind\"\n     \"socket_addrinfo_connect\"\n     \"socket_addrinfo_explain\"\n     \"socket_addrinfo_lookup\"\n     \"socket_bind\"\n     \"socket_clear_error\"\n     \"socket_close\"\n     \"socket_cmsg_space\"\n     \"socket_connect\"\n     \"socket_create\"\n     \"socket_create_listen\"\n     \"socket_create_pair\"\n     \"socket_export_stream\"\n     \"socket_get_option\"\n     \"socket_get_status\"\n     \"socket_getopt\"\n     \"socket_getpeername\"\n     \"socket_getsockname\"\n     \"socket_import_stream\"\n     \"socket_last_error\"\n     \"socket_listen\"\n     \"socket_read\"\n     \"socket_recv\"\n     \"socket_recvfrom\"\n     \"socket_recvmsg\"\n     \"socket_select\"\n     \"socket_send\"\n     \"socket_sendmsg\"\n     \"socket_sendto\"\n     \"socket_set_block\"\n     \"socket_set_blocking\"\n     \"socket_set_nonblock\"\n     \"socket_set_option\"\n     \"socket_set_timeout\"\n     \"socket_setopt\"\n     \"socket_shutdown\"\n     \"socket_strerror\"\n     \"socket_write\"\n     \"socket_wsaprotocol_info_export\"\n     \"socket_wsaprotocol_info_import\"\n     \"socket_wsaprotocol_info_release\")\n    (sodium\n     \"sodium_add\"\n     \"sodium_base642bin\"\n     \"sodium_bin2base64\"\n     \"sodium_bin2hex\"\n     \"sodium_compare\"\n     \"sodium_crypto_aead_aes256gcm_decrypt\"\n     \"sodium_crypto_aead_aes256gcm_encrypt\"\n     \"sodium_crypto_aead_aes256gcm_is_available\"\n     \"sodium_crypto_aead_aes256gcm_keygen\"\n     \"sodium_crypto_aead_chacha20poly1305_decrypt\"\n     \"sodium_crypto_aead_chacha20poly1305_encrypt\"\n     \"sodium_crypto_aead_chacha20poly1305_ietf_decrypt\"\n     \"sodium_crypto_aead_chacha20poly1305_ietf_encrypt\"\n     \"sodium_crypto_aead_chacha20poly1305_ietf_keygen\"\n     \"sodium_crypto_aead_chacha20poly1305_keygen\"\n     \"sodium_crypto_aead_xchacha20poly1305_ietf_decrypt\"\n     \"sodium_crypto_aead_xchacha20poly1305_ietf_encrypt\"\n     \"sodium_crypto_aead_xchacha20poly1305_ietf_keygen\"\n     \"sodium_crypto_auth\"\n     \"sodium_crypto_auth_keygen\"\n     \"sodium_crypto_auth_verify\"\n     \"sodium_crypto_box\"\n     \"sodium_crypto_box_keypair\"\n     \"sodium_crypto_box_keypair_from_secretkey_and_publickey\"\n     \"sodium_crypto_box_open\"\n     \"sodium_crypto_box_publickey\"\n     \"sodium_crypto_box_publickey_from_secretkey\"\n     \"sodium_crypto_box_seal\"\n     \"sodium_crypto_box_seal_open\"\n     \"sodium_crypto_box_secretkey\"\n     \"sodium_crypto_box_seed_keypair\"\n     \"sodium_crypto_core_ristretto255_add\"\n     \"sodium_crypto_core_ristretto255_from_hash\"\n     \"sodium_crypto_core_ristretto255_is_valid_point\"\n     \"sodium_crypto_core_ristretto255_random\"\n     \"sodium_crypto_core_ristretto255_scalar_add\"\n     \"sodium_crypto_core_ristretto255_scalar_complement\"\n     \"sodium_crypto_core_ristretto255_scalar_invert\"\n     \"sodium_crypto_core_ristretto255_scalar_mul\"\n     \"sodium_crypto_core_ristretto255_scalar_negate\"\n     \"sodium_crypto_core_ristretto255_scalar_random\"\n     \"sodium_crypto_core_ristretto255_scalar_reduce\"\n     \"sodium_crypto_core_ristretto255_scalar_sub\"\n     \"sodium_crypto_core_ristretto255_sub\"\n     \"sodium_crypto_generichash\"\n     \"sodium_crypto_generichash_final\"\n     \"sodium_crypto_generichash_init\"\n     \"sodium_crypto_generichash_keygen\"\n     \"sodium_crypto_generichash_update\"\n     \"sodium_crypto_kdf_derive_from_key\"\n     \"sodium_crypto_kdf_keygen\"\n     \"sodium_crypto_kx_client_session_keys\"\n     \"sodium_crypto_kx_keypair\"\n     \"sodium_crypto_kx_publickey\"\n     \"sodium_crypto_kx_secretkey\"\n     \"sodium_crypto_kx_seed_keypair\"\n     \"sodium_crypto_kx_server_session_keys\"\n     \"sodium_crypto_pwhash\"\n     \"sodium_crypto_pwhash_scryptsalsa208sha256\"\n     \"sodium_crypto_pwhash_scryptsalsa208sha256_str\"\n     \"sodium_crypto_pwhash_scryptsalsa208sha256_str_verify\"\n     \"sodium_crypto_pwhash_str\"\n     \"sodium_crypto_pwhash_str_needs_rehash\"\n     \"sodium_crypto_pwhash_str_verify\"\n     \"sodium_crypto_scalarmult\"\n     \"sodium_crypto_scalarmult_base\"\n     \"sodium_crypto_scalarmult_ristretto255\"\n     \"sodium_crypto_scalarmult_ristretto255_base\"\n     \"sodium_crypto_secretbox\"\n     \"sodium_crypto_secretbox_keygen\"\n     \"sodium_crypto_secretbox_open\"\n     \"sodium_crypto_secretstream_xchacha20poly1305_init_pull\"\n     \"sodium_crypto_secretstream_xchacha20poly1305_init_push\"\n     \"sodium_crypto_secretstream_xchacha20poly1305_keygen\"\n     \"sodium_crypto_secretstream_xchacha20poly1305_pull\"\n     \"sodium_crypto_secretstream_xchacha20poly1305_push\"\n     \"sodium_crypto_secretstream_xchacha20poly1305_rekey\"\n     \"sodium_crypto_shorthash\"\n     \"sodium_crypto_shorthash_keygen\"\n     \"sodium_crypto_sign\"\n     \"sodium_crypto_sign_detached\"\n     \"sodium_crypto_sign_ed25519_pk_to_curve25519\"\n     \"sodium_crypto_sign_ed25519_sk_to_curve25519\"\n     \"sodium_crypto_sign_keypair\"\n     \"sodium_crypto_sign_keypair_from_secretkey_and_publickey\"\n     \"sodium_crypto_sign_open\"\n     \"sodium_crypto_sign_publickey\"\n     \"sodium_crypto_sign_publickey_from_secretkey\"\n     \"sodium_crypto_sign_secretkey\"\n     \"sodium_crypto_sign_seed_keypair\"\n     \"sodium_crypto_sign_verify_detached\"\n     \"sodium_crypto_stream\"\n     \"sodium_crypto_stream_keygen\"\n     \"sodium_crypto_stream_xchacha20\"\n     \"sodium_crypto_stream_xchacha20_keygen\"\n     \"sodium_crypto_stream_xchacha20_xor\"\n     \"sodium_crypto_stream_xchacha20_xor_ic\"\n     \"sodium_crypto_stream_xor\"\n     \"sodium_hex2bin\"\n     \"sodium_increment\"\n     \"sodium_memcmp\"\n     \"sodium_memzero\"\n     \"sodium_pad\"\n     \"sodium_unpad\")\n    (solr\n     \"solr_get_version\")\n    (sqlsrv\n     \"sqlsrv_begin_transaction\"\n     \"sqlsrv_cancel\"\n     \"sqlsrv_client_info\"\n     \"sqlsrv_close\"\n     \"sqlsrv_commit\"\n     \"sqlsrv_configure\"\n     \"sqlsrv_connect\"\n     \"sqlsrv_errors\"\n     \"sqlsrv_execute\"\n     \"sqlsrv_fetch\"\n     \"sqlsrv_fetch_array\"\n     \"sqlsrv_fetch_object\"\n     \"sqlsrv_field_metadata\"\n     \"sqlsrv_free_stmt\"\n     \"sqlsrv_get_config\"\n     \"sqlsrv_get_field\"\n     \"sqlsrv_has_rows\"\n     \"sqlsrv_next_result\"\n     \"sqlsrv_num_fields\"\n     \"sqlsrv_num_rows\"\n     \"sqlsrv_prepare\"\n     \"sqlsrv_query\"\n     \"sqlsrv_rollback\"\n     \"sqlsrv_rows_affected\"\n     \"sqlsrv_send_stream_data\"\n     \"sqlsrv_server_info\")\n    (ssdeep\n     \"ssdeep_fuzzy_compare\"\n     \"ssdeep_fuzzy_hash\"\n     \"ssdeep_fuzzy_hash_filename\")\n    (ssh2\n     \"ssh2_auth_agent\"\n     \"ssh2_auth_hostbased_file\"\n     \"ssh2_auth_none\"\n     \"ssh2_auth_password\"\n     \"ssh2_auth_pubkey_file\"\n     \"ssh2_connect\"\n     \"ssh2_disconnect\"\n     \"ssh2_exec\"\n     \"ssh2_fetch_stream\"\n     \"ssh2_fingerprint\"\n     \"ssh2_forward_accept\"\n     \"ssh2_forward_listen\"\n     \"ssh2_methods_negotiated\"\n     \"ssh2_poll\"\n     \"ssh2_publickey_add\"\n     \"ssh2_publickey_init\"\n     \"ssh2_publickey_list\"\n     \"ssh2_publickey_remove\"\n     \"ssh2_scp_recv\"\n     \"ssh2_scp_send\"\n     \"ssh2_send_eof\"\n     \"ssh2_sftp\"\n     \"ssh2_sftp_chmod\"\n     \"ssh2_sftp_lstat\"\n     \"ssh2_sftp_mkdir\"\n     \"ssh2_sftp_readlink\"\n     \"ssh2_sftp_realpath\"\n     \"ssh2_sftp_rename\"\n     \"ssh2_sftp_rmdir\"\n     \"ssh2_sftp_stat\"\n     \"ssh2_sftp_symlink\"\n     \"ssh2_sftp_unlink\"\n     \"ssh2_shell\"\n     \"ssh2_tunnel\")\n    (stats\n     \"stats_absolute_deviation\"\n     \"stats_cdf_beta\"\n     \"stats_cdf_binomial\"\n     \"stats_cdf_cauchy\"\n     \"stats_cdf_chisquare\"\n     \"stats_cdf_exponential\"\n     \"stats_cdf_f\"\n     \"stats_cdf_gamma\"\n     \"stats_cdf_laplace\"\n     \"stats_cdf_logistic\"\n     \"stats_cdf_negative_binomial\"\n     \"stats_cdf_noncentral_chisquare\"\n     \"stats_cdf_noncentral_f\"\n     \"stats_cdf_noncentral_t\"\n     \"stats_cdf_normal\"\n     \"stats_cdf_poisson\"\n     \"stats_cdf_t\"\n     \"stats_cdf_uniform\"\n     \"stats_cdf_weibull\"\n     \"stats_covariance\"\n     \"stats_dens_beta\"\n     \"stats_dens_cauchy\"\n     \"stats_dens_chisquare\"\n     \"stats_dens_exponential\"\n     \"stats_dens_f\"\n     \"stats_dens_gamma\"\n     \"stats_dens_laplace\"\n     \"stats_dens_logistic\"\n     \"stats_dens_normal\"\n     \"stats_dens_pmf_binomial\"\n     \"stats_dens_pmf_hypergeometric\"\n     \"stats_dens_pmf_negative_binomial\"\n     \"stats_dens_pmf_poisson\"\n     \"stats_dens_t\"\n     \"stats_dens_uniform\"\n     \"stats_dens_weibull\"\n     \"stats_harmonic_mean\"\n     \"stats_kurtosis\"\n     \"stats_rand_gen_beta\"\n     \"stats_rand_gen_chisquare\"\n     \"stats_rand_gen_exponential\"\n     \"stats_rand_gen_f\"\n     \"stats_rand_gen_funiform\"\n     \"stats_rand_gen_gamma\"\n     \"stats_rand_gen_ibinomial\"\n     \"stats_rand_gen_ibinomial_negative\"\n     \"stats_rand_gen_int\"\n     \"stats_rand_gen_ipoisson\"\n     \"stats_rand_gen_iuniform\"\n     \"stats_rand_gen_noncentral_chisquare\"\n     \"stats_rand_gen_noncentral_f\"\n     \"stats_rand_gen_noncentral_t\"\n     \"stats_rand_gen_normal\"\n     \"stats_rand_gen_t\"\n     \"stats_rand_get_seeds\"\n     \"stats_rand_phrase_to_seeds\"\n     \"stats_rand_ranf\"\n     \"stats_rand_setall\"\n     \"stats_skew\"\n     \"stats_standard_deviation\"\n     \"stats_stat_binomial_coef\"\n     \"stats_stat_correlation\"\n     \"stats_stat_factorial\"\n     \"stats_stat_independent_t\"\n     \"stats_stat_innerproduct\"\n     \"stats_stat_paired_t\"\n     \"stats_stat_percentile\"\n     \"stats_stat_powersum\"\n     \"stats_variance\")\n    (stomp\n     \"stomp_abort\"\n     \"stomp_ack\"\n     \"stomp_begin\"\n     \"stomp_close\"\n     \"stomp_commit\"\n     \"stomp_connect\"\n     \"stomp_connect_error\"\n     \"stomp_error\"\n     \"stomp_get_read_timeout\"\n     \"stomp_get_session_id\"\n     \"stomp_has_frame\"\n     \"stomp_read_frame\"\n     \"stomp_send\"\n     \"stomp_set_read_timeout\"\n     \"stomp_subscribe\"\n     \"stomp_unsubscribe\"\n     \"stomp_version\")\n    (svn\n     \"svn_add\"\n     \"svn_auth_get_parameter\"\n     \"svn_auth_set_parameter\"\n     \"svn_blame\"\n     \"svn_cat\"\n     \"svn_checkout\"\n     \"svn_cleanup\"\n     \"svn_client_version\"\n     \"svn_commit\"\n     \"svn_delete\"\n     \"svn_diff\"\n     \"svn_export\"\n     \"svn_fs_abort_txn\"\n     \"svn_fs_apply_text\"\n     \"svn_fs_begin_txn2\"\n     \"svn_fs_change_node_prop\"\n     \"svn_fs_check_path\"\n     \"svn_fs_contents_changed\"\n     \"svn_fs_copy\"\n     \"svn_fs_delete\"\n     \"svn_fs_dir_entries\"\n     \"svn_fs_file_contents\"\n     \"svn_fs_file_length\"\n     \"svn_fs_is_dir\"\n     \"svn_fs_is_file\"\n     \"svn_fs_make_dir\"\n     \"svn_fs_make_file\"\n     \"svn_fs_node_created_rev\"\n     \"svn_fs_node_prop\"\n     \"svn_fs_props_changed\"\n     \"svn_fs_revision_prop\"\n     \"svn_fs_revision_root\"\n     \"svn_fs_txn_root\"\n     \"svn_fs_youngest_rev\"\n     \"svn_import\"\n     \"svn_log\"\n     \"svn_ls\"\n     \"svn_mkdir\"\n     \"svn_repos_create\"\n     \"svn_repos_fs\"\n     \"svn_repos_fs_begin_txn_for_commit\"\n     \"svn_repos_fs_commit_txn\"\n     \"svn_repos_hotcopy\"\n     \"svn_repos_open\"\n     \"svn_repos_recover\"\n     \"svn_revert\"\n     \"svn_status\"\n     \"svn_update\")\n    (swoole\n     \"swoole_async_dns_lookup\"\n     \"swoole_async_read\"\n     \"swoole_async_readfile\"\n     \"swoole_async_set\"\n     \"swoole_async_write\"\n     \"swoole_async_writefile\"\n     \"swoole_clear_error\"\n     \"swoole_client_select\"\n     \"swoole_cpu_num\"\n     \"swoole_errno\"\n     \"swoole_error_log\"\n     \"swoole_event_add\"\n     \"swoole_event_defer\"\n     \"swoole_event_del\"\n     \"swoole_event_exit\"\n     \"swoole_event_set\"\n     \"swoole_event_wait\"\n     \"swoole_event_write\"\n     \"swoole_get_local_ip\"\n     \"swoole_last_error\"\n     \"swoole_load_module\"\n     \"swoole_select\"\n     \"swoole_set_process_name\"\n     \"swoole_strerror\"\n     \"swoole_timer_after\"\n     \"swoole_timer_clear\"\n     \"swoole_timer_exists\"\n     \"swoole_timer_tick\"\n     \"swoole_version\")\n    (sysvshm\n     \"ftok\"\n     \"msg_get_queue\"\n     \"msg_queue_exists\"\n     \"msg_receive\"\n     \"msg_remove_queue\"\n     \"msg_send\"\n     \"msg_set_queue\"\n     \"msg_stat_queue\"\n     \"sem_acquire\"\n     \"sem_get\"\n     \"sem_release\"\n     \"sem_remove\"\n     \"shm_attach\"\n     \"shm_detach\"\n     \"shm_get_var\"\n     \"shm_has_var\"\n     \"shm_put_var\"\n     \"shm_remove\"\n     \"shm_remove_var\")\n    (taint\n     \"is_tainted\"\n     \"taint\"\n     \"untaint\")\n    (tcpwrap\n     \"tcpwrap_check\")\n    (tidy\n     \"tidy_access_count\"\n     \"tidy_clean_repair\"\n     \"tidy_config_count\"\n     \"tidy_diagnose\"\n     \"tidy_error_count\"\n     \"tidy_get_body\"\n     \"tidy_get_config\"\n     \"tidy_get_error_buffer\"\n     \"tidy_get_head\"\n     \"tidy_get_html\"\n     \"tidy_get_html_ver\"\n     \"tidy_get_opt_doc\"\n     \"tidy_get_output\"\n     \"tidy_get_release\"\n     \"tidy_get_root\"\n     \"tidy_get_status\"\n     \"tidy_getopt\"\n     \"tidy_is_xhtml\"\n     \"tidy_is_xml\"\n     \"tidy_parse_file\"\n     \"tidy_parse_string\"\n     \"tidy_repair_file\"\n     \"tidy_repair_string\"\n     \"tidy_warning_count\")\n    (trader\n     \"trader_acos\"\n     \"trader_ad\"\n     \"trader_add\"\n     \"trader_adosc\"\n     \"trader_adx\"\n     \"trader_adxr\"\n     \"trader_apo\"\n     \"trader_aroon\"\n     \"trader_aroonosc\"\n     \"trader_asin\"\n     \"trader_atan\"\n     \"trader_atr\"\n     \"trader_avgprice\"\n     \"trader_bbands\"\n     \"trader_beta\"\n     \"trader_bop\"\n     \"trader_cci\"\n     \"trader_cdl2crows\"\n     \"trader_cdl3blackcrows\"\n     \"trader_cdl3inside\"\n     \"trader_cdl3linestrike\"\n     \"trader_cdl3outside\"\n     \"trader_cdl3starsinsouth\"\n     \"trader_cdl3whitesoldiers\"\n     \"trader_cdlabandonedbaby\"\n     \"trader_cdladvanceblock\"\n     \"trader_cdlbelthold\"\n     \"trader_cdlbreakaway\"\n     \"trader_cdlclosingmarubozu\"\n     \"trader_cdlconcealbabyswall\"\n     \"trader_cdlcounterattack\"\n     \"trader_cdldarkcloudcover\"\n     \"trader_cdldoji\"\n     \"trader_cdldojistar\"\n     \"trader_cdldragonflydoji\"\n     \"trader_cdlengulfing\"\n     \"trader_cdleveningdojistar\"\n     \"trader_cdleveningstar\"\n     \"trader_cdlgapsidesidewhite\"\n     \"trader_cdlgravestonedoji\"\n     \"trader_cdlhammer\"\n     \"trader_cdlhangingman\"\n     \"trader_cdlharami\"\n     \"trader_cdlharamicross\"\n     \"trader_cdlhighwave\"\n     \"trader_cdlhikkake\"\n     \"trader_cdlhikkakemod\"\n     \"trader_cdlhomingpigeon\"\n     \"trader_cdlidentical3crows\"\n     \"trader_cdlinneck\"\n     \"trader_cdlinvertedhammer\"\n     \"trader_cdlkicking\"\n     \"trader_cdlkickingbylength\"\n     \"trader_cdlladderbottom\"\n     \"trader_cdllongleggeddoji\"\n     \"trader_cdllongline\"\n     \"trader_cdlmarubozu\"\n     \"trader_cdlmatchinglow\"\n     \"trader_cdlmathold\"\n     \"trader_cdlmorningdojistar\"\n     \"trader_cdlmorningstar\"\n     \"trader_cdlonneck\"\n     \"trader_cdlpiercing\"\n     \"trader_cdlrickshawman\"\n     \"trader_cdlrisefall3methods\"\n     \"trader_cdlseparatinglines\"\n     \"trader_cdlshootingstar\"\n     \"trader_cdlshortline\"\n     \"trader_cdlspinningtop\"\n     \"trader_cdlstalledpattern\"\n     \"trader_cdlsticksandwich\"\n     \"trader_cdltakuri\"\n     \"trader_cdltasukigap\"\n     \"trader_cdlthrusting\"\n     \"trader_cdltristar\"\n     \"trader_cdlunique3river\"\n     \"trader_cdlupsidegap2crows\"\n     \"trader_cdlxsidegap3methods\"\n     \"trader_ceil\"\n     \"trader_cmo\"\n     \"trader_correl\"\n     \"trader_cos\"\n     \"trader_cosh\"\n     \"trader_dema\"\n     \"trader_div\"\n     \"trader_dx\"\n     \"trader_ema\"\n     \"trader_errno\"\n     \"trader_exp\"\n     \"trader_floor\"\n     \"trader_get_compat\"\n     \"trader_get_unstable_period\"\n     \"trader_ht_dcperiod\"\n     \"trader_ht_dcphase\"\n     \"trader_ht_phasor\"\n     \"trader_ht_sine\"\n     \"trader_ht_trendline\"\n     \"trader_ht_trendmode\"\n     \"trader_kama\"\n     \"trader_linearreg\"\n     \"trader_linearreg_angle\"\n     \"trader_linearreg_intercept\"\n     \"trader_linearreg_slope\"\n     \"trader_ln\"\n     \"trader_log10\"\n     \"trader_ma\"\n     \"trader_macd\"\n     \"trader_macdext\"\n     \"trader_macdfix\"\n     \"trader_mama\"\n     \"trader_mavp\"\n     \"trader_max\"\n     \"trader_maxindex\"\n     \"trader_medprice\"\n     \"trader_mfi\"\n     \"trader_midpoint\"\n     \"trader_midprice\"\n     \"trader_min\"\n     \"trader_minindex\"\n     \"trader_minmax\"\n     \"trader_minmaxindex\"\n     \"trader_minus_di\"\n     \"trader_minus_dm\"\n     \"trader_mom\"\n     \"trader_mult\"\n     \"trader_natr\"\n     \"trader_obv\"\n     \"trader_plus_di\"\n     \"trader_plus_dm\"\n     \"trader_ppo\"\n     \"trader_roc\"\n     \"trader_rocp\"\n     \"trader_rocr\"\n     \"trader_rocr100\"\n     \"trader_rsi\"\n     \"trader_sar\"\n     \"trader_sarext\"\n     \"trader_set_compat\"\n     \"trader_set_unstable_period\"\n     \"trader_sin\"\n     \"trader_sinh\"\n     \"trader_sma\"\n     \"trader_sqrt\"\n     \"trader_stddev\"\n     \"trader_stoch\"\n     \"trader_stochf\"\n     \"trader_stochrsi\"\n     \"trader_sub\"\n     \"trader_sum\"\n     \"trader_t3\"\n     \"trader_tan\"\n     \"trader_tanh\"\n     \"trader_tema\"\n     \"trader_trange\"\n     \"trader_trima\"\n     \"trader_trix\"\n     \"trader_tsf\"\n     \"trader_typprice\"\n     \"trader_ultosc\"\n     \"trader_var\"\n     \"trader_wclprice\"\n     \"trader_willr\"\n     \"trader_wma\")\n    (ui\n     \"UI\\\\Draw\\\\Text\\\\Font\\\\fontFamilies\"\n     \"UI\\\\quit\"\n     \"UI\\\\run\")\n    (uopz\n     \"uopz_add_function\"\n     \"uopz_allow_exit\"\n     \"uopz_backup\"\n     \"uopz_compose\"\n     \"uopz_copy\"\n     \"uopz_del_function\"\n     \"uopz_delete\"\n     \"uopz_extend\"\n     \"uopz_flags\"\n     \"uopz_function\"\n     \"uopz_get_exit_status\"\n     \"uopz_get_hook\"\n     \"uopz_get_mock\"\n     \"uopz_get_property\"\n     \"uopz_get_return\"\n     \"uopz_get_static\"\n     \"uopz_implement\"\n     \"uopz_overload\"\n     \"uopz_redefine\"\n     \"uopz_rename\"\n     \"uopz_restore\"\n     \"uopz_set_hook\"\n     \"uopz_set_mock\"\n     \"uopz_set_property\"\n     \"uopz_set_return\"\n     \"uopz_set_static\"\n     \"uopz_undefine\"\n     \"uopz_unset_hook\"\n     \"uopz_unset_mock\"\n     \"uopz_unset_return\")\n    (var_representation\n     \"var_representation\")\n    (win32service\n     \"win32_continue_service\"\n     \"win32_create_service\"\n     \"win32_delete_service\"\n     \"win32_get_last_control_message\"\n     \"win32_pause_service\"\n     \"win32_query_service_status\"\n     \"win32_send_custom_control\"\n     \"win32_set_service_exit_code\"\n     \"win32_set_service_exit_mode\"\n     \"win32_set_service_status\"\n     \"win32_start_service\"\n     \"win32_start_service_ctrl_dispatcher\"\n     \"win32_stop_service\")\n    (wincache\n     \"wincache_fcache_fileinfo\"\n     \"wincache_fcache_meminfo\"\n     \"wincache_lock\"\n     \"wincache_ocache_fileinfo\"\n     \"wincache_ocache_meminfo\"\n     \"wincache_refresh_if_changed\"\n     \"wincache_rplist_fileinfo\"\n     \"wincache_rplist_meminfo\"\n     \"wincache_scache_info\"\n     \"wincache_scache_meminfo\"\n     \"wincache_ucache_add\"\n     \"wincache_ucache_cas\"\n     \"wincache_ucache_clear\"\n     \"wincache_ucache_dec\"\n     \"wincache_ucache_delete\"\n     \"wincache_ucache_exists\"\n     \"wincache_ucache_get\"\n     \"wincache_ucache_inc\"\n     \"wincache_ucache_info\"\n     \"wincache_ucache_meminfo\"\n     \"wincache_ucache_set\"\n     \"wincache_unlock\")\n    (xattr\n     \"xattr_get\"\n     \"xattr_list\"\n     \"xattr_remove\"\n     \"xattr_set\"\n     \"xattr_supported\")\n    (xdiff\n     \"xdiff_file_bdiff\"\n     \"xdiff_file_bdiff_size\"\n     \"xdiff_file_bpatch\"\n     \"xdiff_file_diff\"\n     \"xdiff_file_diff_binary\"\n     \"xdiff_file_merge3\"\n     \"xdiff_file_patch\"\n     \"xdiff_file_patch_binary\"\n     \"xdiff_file_rabdiff\"\n     \"xdiff_string_bdiff\"\n     \"xdiff_string_bdiff_size\"\n     \"xdiff_string_bpatch\"\n     \"xdiff_string_diff\"\n     \"xdiff_string_diff_binary\"\n     \"xdiff_string_merge3\"\n     \"xdiff_string_patch\"\n     \"xdiff_string_patch_binary\"\n     \"xdiff_string_rabdiff\")\n    (xhprof\n     \"xhprof_disable\"\n     \"xhprof_enable\"\n     \"xhprof_sample_disable\"\n     \"xhprof_sample_enable\")\n    (xml\n     \"xml_error_string\"\n     \"xml_get_current_byte_index\"\n     \"xml_get_current_column_number\"\n     \"xml_get_current_line_number\"\n     \"xml_get_error_code\"\n     \"xml_parse\"\n     \"xml_parse_into_struct\"\n     \"xml_parser_create\"\n     \"xml_parser_create_ns\"\n     \"xml_parser_free\"\n     \"xml_parser_get_option\"\n     \"xml_parser_set_option\"\n     \"xml_set_character_data_handler\"\n     \"xml_set_default_handler\"\n     \"xml_set_element_handler\"\n     \"xml_set_end_namespace_decl_handler\"\n     \"xml_set_external_entity_ref_handler\"\n     \"xml_set_notation_decl_handler\"\n     \"xml_set_object\"\n     \"xml_set_processing_instruction_handler\"\n     \"xml_set_start_namespace_decl_handler\"\n     \"xml_set_unparsed_entity_decl_handler\")\n    (xmlrpc\n     \"xmlrpc_decode\"\n     \"xmlrpc_decode_request\"\n     \"xmlrpc_encode\"\n     \"xmlrpc_encode_request\"\n     \"xmlrpc_get_type\"\n     \"xmlrpc_is_fault\"\n     \"xmlrpc_parse_method_descriptions\"\n     \"xmlrpc_server_add_introspection_data\"\n     \"xmlrpc_server_call_method\"\n     \"xmlrpc_server_create\"\n     \"xmlrpc_server_destroy\"\n     \"xmlrpc_server_register_introspection_callback\"\n     \"xmlrpc_server_register_method\"\n     \"xmlrpc_set_type\")\n    (xmlwriter\n     \"xmlwriter_end_attribute\"\n     \"xmlwriter_end_cdata\"\n     \"xmlwriter_end_comment\"\n     \"xmlwriter_end_document\"\n     \"xmlwriter_end_dtd\"\n     \"xmlwriter_end_dtd_attlist\"\n     \"xmlwriter_end_dtd_element\"\n     \"xmlwriter_end_dtd_entity\"\n     \"xmlwriter_end_element\"\n     \"xmlwriter_end_pi\"\n     \"xmlwriter_flush\"\n     \"xmlwriter_full_end_element\"\n     \"xmlwriter_open_memory\"\n     \"xmlwriter_open_uri\"\n     \"xmlwriter_output_memory\"\n     \"xmlwriter_set_indent\"\n     \"xmlwriter_set_indent_string\"\n     \"xmlwriter_start_attribute\"\n     \"xmlwriter_start_attribute_ns\"\n     \"xmlwriter_start_cdata\"\n     \"xmlwriter_start_comment\"\n     \"xmlwriter_start_document\"\n     \"xmlwriter_start_dtd\"\n     \"xmlwriter_start_dtd_attlist\"\n     \"xmlwriter_start_dtd_element\"\n     \"xmlwriter_start_dtd_entity\"\n     \"xmlwriter_start_element\"\n     \"xmlwriter_start_element_ns\"\n     \"xmlwriter_start_pi\"\n     \"xmlwriter_text\"\n     \"xmlwriter_write_attribute\"\n     \"xmlwriter_write_attribute_ns\"\n     \"xmlwriter_write_cdata\"\n     \"xmlwriter_write_comment\"\n     \"xmlwriter_write_dtd\"\n     \"xmlwriter_write_dtd_attlist\"\n     \"xmlwriter_write_dtd_element\"\n     \"xmlwriter_write_dtd_entity\"\n     \"xmlwriter_write_element\"\n     \"xmlwriter_write_element_ns\"\n     \"xmlwriter_write_pi\"\n     \"xmlwriter_write_raw\")\n    (yaml\n     \"yaml_emit\"\n     \"yaml_emit_file\"\n     \"yaml_parse\"\n     \"yaml_parse_file\"\n     \"yaml_parse_url\")\n    (yaz\n     \"yaz_addinfo\"\n     \"yaz_ccl_conf\"\n     \"yaz_ccl_parse\"\n     \"yaz_close\"\n     \"yaz_connect\"\n     \"yaz_database\"\n     \"yaz_element\"\n     \"yaz_errno\"\n     \"yaz_error\"\n     \"yaz_es\"\n     \"yaz_es_result\"\n     \"yaz_get_option\"\n     \"yaz_hits\"\n     \"yaz_itemorder\"\n     \"yaz_present\"\n     \"yaz_range\"\n     \"yaz_record\"\n     \"yaz_scan\"\n     \"yaz_scan_result\"\n     \"yaz_schema\"\n     \"yaz_search\"\n     \"yaz_set_option\"\n     \"yaz_sort\"\n     \"yaz_syntax\"\n     \"yaz_wait\")\n    (zlib\n     \"deflate_add\"\n     \"deflate_init\"\n     \"gzclose\"\n     \"gzcompress\"\n     \"gzdecode\"\n     \"gzdeflate\"\n     \"gzencode\"\n     \"gzeof\"\n     \"gzfile\"\n     \"gzgetc\"\n     \"gzgets\"\n     \"gzgetss\"\n     \"gzinflate\"\n     \"gzopen\"\n     \"gzpassthru\"\n     \"gzputs\"\n     \"gzread\"\n     \"gzrewind\"\n     \"gzseek\"\n     \"gztell\"\n     \"gzuncompress\"\n     \"gzwrite\"\n     \"inflate_add\"\n     \"inflate_get_read_len\"\n     \"inflate_get_status\"\n     \"inflate_init\"\n     \"readgzfile\"\n     \"zlib_decode\"\n     \"zlib_encode\"\n     \"zlib_get_coding_type\")\n    (zookeeper\n     \"zookeeper_dispatch\")))\n\n(provide 'php-defs)\n;;; php-defs.el ends here\n"
  },
  {
    "path": "lisp/php-face.el",
    "content": ";;; php-face.el --- Face definitions for PHP script  -*- lexical-binding: t; -*-\n\n;; Copyright (C) 2023  Friends of Emacs-PHP development\n\n;; Author: USAMI Kenta <tadsan@zonu.me>\n;; Created: 5 May 2019\n;; Version: 1.26.1\n;; Keywords: faces, php\n;; Homepage: https://github.com/emacs-php/php-mode\n;; License: GPL-3.0-or-later\n\n;; This program is free software; you can redistribute it and/or modify\n;; it under the terms of the GNU General Public License as published by\n;; the Free Software Foundation, either version 3 of the License, or\n;; (at your option) any later version.\n\n;; This program is distributed in the hope that it will be useful,\n;; but WITHOUT ANY WARRANTY; without even the implied warranty of\n;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;; GNU General Public License for more details.\n\n;; You should have received a copy of the GNU General Public License\n;; along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n;;; Commentary:\n\n;; Face definitions for PHP script.\n\n;;; Code:\n\n;;;###autoload\n(defgroup php-faces nil\n  \"Faces used in PHP Mode.\"\n  :tag \"PHP Faces\"\n  :group 'php-mode\n  :group 'faces)\n\n(defface php-string '((t (:inherit font-lock-string-face)))\n  \"PHP Mode face used to highlight string literals.\"\n  :group 'php-faces\n  :tag \"PHP String\")\n\n(defface php-keyword '((t (:inherit font-lock-keyword-face)))\n  \"PHP Mode face used to highlight keywords.\"\n  :group 'php-faces\n  :tag \"PHP Keyword\")\n\n(defface php-builtin '((t (:inherit font-lock-builtin-face)))\n  \"PHP Mode face used to highlight builtins.\"\n  :group 'php-faces\n  :tag \"PHP Built-in\")\n\n(defface php-function-name '((t (:inherit font-lock-function-name-face)))\n  \"PHP Mode face used to highlight function names.\"\n  :group 'php-faces\n  :tag \"PHP Function Name\")\n\n(defface php-function-call-standard `((t ,(when (eval-when-compile (get 'font-lock-function-call-face 'face-defface-spec))\n                                            '(:inherit font-lock-function-call-face))))\n  \"PHP Mode face used to highlight function names in calles.\"\n  :group 'php-faces\n  :tag \"PHP Function Call Standard\")\n\n(defface php-function-call-traditional '((t ()))\n  \"PHP Mode face used to highlight function names in calles.\"\n  :group 'php-faces\n  :tag \"PHP Function Call Traditional\")\n\n(define-obsolete-face-alias 'php-function-call 'php-function-call-traditional \"1.26.0\")\n\n(defface php-method-call-standard '((t (:inherit php-function-call-standard)))\n  \"PHP Mode face used to highlight method names in calles.\"\n  :group 'php-faces\n  :tag \"PHP Method Call Standard\")\n\n(defface php-method-call-traditional '((t (:inherit php-function-call-traditional)))\n  \"PHP Mode face used to highlight method names in calles.\"\n  :group 'php-faces\n  :tag \"PHP Method Call Traditional\")\n\n(define-obsolete-face-alias 'php-method-call 'php-method-call-traditional \"1.26.0\")\n\n(defface php-static-method-call-standard '((t (:inherit php-method-call-standard)))\n  \"PHP Mode face used to highlight static method names in calles.\"\n  :group 'php-faces\n  :tag \"PHP Static Method Call Standard\")\n\n(defface php-static-method-call-traditional '((t (:inherit php-method-call-traditional)))\n  \"PHP Mode face used to highlight static method names in calles.\"\n  :group 'php-faces\n  :tag \"PHP Static Method Call Traditional\")\n\n(define-obsolete-face-alias 'php-static-method-call 'php-static-method-call-traditional \"1.26.0\")\n\n(defface php-variable-name '((t (:inherit font-lock-variable-name-face)))\n  \"PHP Mode face used to highlight variable names.\"\n  :group 'php-faces\n  :tag \"PHP Variable Name\")\n\n(defface php-property-name '((t (:inherit php-variable-name)))\n  \"PHP Mode face used to highlight property names.\"\n  :group 'php-faces\n  :tag \"PHP Property Name\")\n\n(defface php-variable-sigil '((t ()))\n  \"PHP Mode face used to highlight variable sigils ($).\"\n  :group 'php-faces\n  :tag \"PHP Variable Sigil\")\n\n(defface php-operator '((t ()))\n  \"PHP Mode face used to operators.\"\n  :group 'php-faces\n  :tag \"PHP Operator\")\n\n(defface php-assignment-op '((t (:inherit php-operator)))\n  \"PHP Mode face used to assignment operators (=, +=, ...).\"\n  :group 'php-faces\n  :tag \"PHP Object Op\")\n\n(defface php-comparison-op '((t (:inherit php-operator)))\n  \"PHP Mode face used to comparison operators (==, !=, ===, ...).\"\n  :group 'php-faces\n  :tag \"PHP Comparison Op\")\n\n(defface php-logical-op '((t (:inherit php-operator)))\n  \"PHP Mode face used to logical operators (&&, ||, ?:).\"\n  :group 'php-faces\n  :tag \"PHP Logical Op\")\n\n(defface php-arithmetic-op '((t (:inherit php-operator)))\n  \"PHP Mode face used to arithmetic operators (+, -, %, ...).\"\n  :group 'php-faces\n  :tag \"PHP Arithmetic Op\")\n\n(defface php-inc-dec-op '((t (:inherit php-operator)))\n  \"PHP Mode face used to increment and decremt operators (--, ++).\"\n  :group 'php-faces\n  :tag \"PHP Increment/Decrement Op\")\n\n(defface php-string-op '((t (:inherit php-operator)))\n  \"PHP Mode face used to logical operators (.).\"\n  :group 'php-faces\n  :tag \"PHP String Op\")\n\n(defface php-object-op '((t (:inherit php-operator)))\n  \"PHP Mode face used to object operators (->).\"\n  :group 'php-faces\n  :tag \"PHP Object Op\")\n\n(defface php-paamayim-nekudotayim '((t ()))\n  \"PHP Mode face used to highlight scope resolution operators (::).\nThe operator is also knows as \\\"Paamayim Nekudotayim\\\".\"\n  :group 'php-faces\n  :tag \"PHP Paamayim Nekudotayim\")\n\n(defface php-type '((t (:inherit font-lock-type-face)))\n  \"PHP Mode face used to highlight types.\"\n  :group 'php-faces\n  :tag \"PHP Type\")\n\n(defface php-class '((t (:inherit font-lock-type-face)))\n  \"PHP Mode face used to highlight class.\"\n  :group 'php-faces\n  :tag \"PHP Class\")\n\n(defface php-constant '((t (:inherit font-lock-constant-face)))\n  \"PHP Mode face used to highlight constants.\"\n  :group 'php-faces\n  :tag \"PHP Constant\")\n\n(defface php-constant-assign '((t (:inherit php-constant)))\n  \"PHP Mode face used to highlight constant assigning (\\\"const\\\" statement).\"\n  :group 'php-faces\n  :tag \"PHP Constant Assign\")\n\n(defface php-magical-constant '((t (:inherit font-lock-builtin-face)))\n  \"PHP Mode face used to highlight magical constants.\"\n  :group 'php-faces\n  :tag \"PHP Magical Constant\")\n\n(defface php-this '((t (:inherit php-constant)))\n  \"PHP Mode face used to highlight $this variables.\"\n  :group 'php-faces\n  :tag \"PHP $this\")\n\n(defface php-this-sigil '((t (:inherit php-constant)))\n  \"PHP Mode face used to highlight sigils($) of $this variable.\"\n  :group 'php-faces\n  :tag \"PHP $this Sigil\")\n\n(define-obsolete-face-alias 'php-$this 'php-this \"1.26.0\")\n(define-obsolete-face-alias 'php-$this-sigil 'php-this-sigil \"1.26.0\")\n\n(defface php-errorcontrol-op '((t (:inherit font-lock-type-face)))\n  \"PHP Mode face used to highlight errorcontrol operators (@)..\"\n  :group 'php-faces\n  :tag \"PHP ErrorControl Op\")\n\n(defface php-php-tag '((t (:inherit font-lock-preprocessor-face)))\n  \"PHP Mode face used to highlight PHP tags.\"\n  :group 'php-faces\n  :tag \"PHP php Tag\")\n\n(defface php-doc-annotation-tag (eval-when-compile\n                                  (if (eval-when-compile (boundp 'font-lock-doc-markup-face))\n                                      '((t . (:inherit font-lock-doc-markup-face)))\n                                    '((t . (:inherit font-lock-constant-face)))))\n  \"Face used to highlight annotation tags in doc-comment.\"\n  :group 'php-faces\n  :tag \"PHPDoc Annotation Tag\")\n\n(defface php-doc-variable-sigil '((t (:inherit font-lock-variable-name-face)))\n  \"PHP Mode face used to highlight variable sigils($).\"\n  :group 'php-faces\n  :tag \"PHPDoc Variable Sigil\")\n\n(defface php-doc-$this '((t (:inherit php-type)))\n  \"PHP Mode face used to highlight $this variable in doc-comment.\"\n  :group 'php-faces\n  :tag \"PHPDoc $this\")\n\n(defface php-doc-$this-sigil '((t (:inherit php-type)))\n  \"PHP Mode face used to highlight sigil of $this variable in doc-comment.\"\n  :group 'php-faces\n  :tag \"PHPDoc $this Sigil\")\n\n(defface php-doc-class-name '((t (:inherit php-string)))\n  \"PHP Mode Face used to class names in doc-comment.\"\n  :group 'php-faces\n  :tag \"PHPDoc Class Name\")\n\n(defface php-class-declaration '((t (:inherit php-keyword)))\n  \"PHP Mode Face used to class declarations.\"\n  :group 'php-faces\n  :tag \"PHP Class Declaration\")\n\n(defface php-class-declaration-spec '((t (:inherit php-keyword)))\n  \"PHP Mode Face used to highlight class declaration specification keywords.\nThe keywords include: implements, extends.\"\n  :group 'php-faces\n  :tag \"PHP Class Declaration Specification\")\n\n(defface php-namespace-declaration '((t (:inherit php-keyword)))\n  \"PHP Mode Face used to highlight namespace declaration keyword.\"\n  :group 'php-faces\n  :tag \"PHP Namespace Declaration\")\n\n(defface php-import-declaration '((t (:inherit php-keyword)))\n  \"PHP Mode Face used to highlight import statements (use ... as ...).\"\n  :group 'php-faces\n  :tag \"PHP Import Statement\")\n\n(defface php-class-modifier '((t (:inherit php-keyword)))\n  \"PHP Mode Face used to highlight class modifiers (final, abstract).\"\n  :group 'php-faces\n  :tag \"PHP Class Modifier\")\n\n(defface php-method-modifier '((t (:inherit php-keyword)))\n  \"PHP Mode Face used to highlight method modifiers (final, abstract).\"\n  :group 'php-faces\n  :tag \"PHP Method Modifier\")\n\n(defface php-visibility-modifier '((t (:inherit php-keyword)))\n  \"PHP Mode Face used to highlight access keywords (public, protected, private).\"\n  :group 'php-faces\n  :tag \"PHP Visibility Modifier\")\n\n(defface php-control-structure '((t (:inherit php-keyword)))\n \"PHP Mode Face used to highlight control structures.\nThe control structures include: if, foreach, while, switch, catch.\"\n  :group 'php-faces\n  :tag \"PHP Control Structure\")\n\n(define-obsolete-face-alias 'php-annotations-annotation-face 'php-doc-annotation-tag \"1.19.0\")\n\n(provide 'php-face)\n;;; php-face.el ends here\n"
  },
  {
    "path": "lisp/php-flymake.el",
    "content": ";;; php-flymake.el --- Flymake backend for PHP       -*- lexical-binding: t; -*-\n\n;; Copyright (C) 2023  Friends of Emacs-PHP development\n\n;; Author: USAMI Kenta <tadsan@zonu.me>\n;; Created: 5 Mar 2022\n;; Version: 1.26.1\n;; Keywords: tools, languages, php\n\n;; This program is free software; you can redistribute it and/or modify\n;; it under the terms of the GNU General Public License as published by\n;; the Free Software Foundation, either version 3 of the License, or\n;; (at your option) any later version.\n\n;; This program is distributed in the hope that it will be useful,\n;; but WITHOUT ANY WARRANTY; without even the implied warranty of\n;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;; GNU General Public License for more details.\n\n;; You should have received a copy of the GNU General Public License\n;; along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n;;; Commentary:\n\n;; Flymake backend for PHP.\n\n;;; Code:\n(require 'flymake)\n(require 'cl-lib)\n(eval-and-compile\n  (require 'flymake-proc))\n(eval-when-compile\n  (require 'pcase)\n  (require 'rx))\n\n(defgroup php-flymake nil\n  \"Flymake backend for PHP.\"\n  :tag \"PHP Flymake\"\n  :group 'php)\n\n(defcustom php-flymake-executable-command-args nil\n  \"List of command and arguments for `php -l'.\"\n  :group 'php-flymake\n  :type '(repeat string)\n  :safe (lambda (v) (and (listp v) (cl-every v #'stringp))))\n\n(defconst php-flymake--diaggnostics-pattern\n  (eval-when-compile\n    (rx bol (? \"PHP \")\n        (group (or \"Parse\" \"Fatal\")) ;; 1: type, not used\n        \" error:\" (+ (syntax whitespace))\n        (group (+? any)) ;; 2: msg\n        \" in \" (group (+? any)) ;; 3: file, not used\n        \" on line \" (group (+ num)) ;; 4: line\n        eol)))\n\n(defvar-local php-flymake--proc nil)\n\n;;;###autoload\n(defun php-flymake (report-fn &rest args)\n  \"Flymake backend for PHP syntax check.\n\nSee `flymake-diagnostic-functions' about REPORT-FN and ARGS parameters.\"\n  (setq-local flymake-proc-allowed-file-name-masks nil)\n  (when (process-live-p php-flymake--proc)\n    (if (plist-get args :interactive)\n        (user-error \"There's already a Flymake process running in this buffer\")\n      (kill-process php-flymake--proc)))\n  (save-restriction\n    (widen)\n    (cl-multiple-value-bind (use-stdin skip) (php-flymake--buffer-status)\n      (unless skip\n        (setq php-flymake--proc (php-flymake--make-process report-fn buffer-file-name (current-buffer) use-stdin))\n        (when use-stdin\n          (process-send-region php-flymake--proc (point-min) (point-max)))\n        (process-send-eof php-flymake--proc)))))\n\n(defun php-flymake--buffer-status ()\n  \"Return buffer status about \\\"use STDIN\\\" and \\\"Skip diagnostic\\\".\"\n  (let* ((use-stdin (or (null buffer-file-name)\n                         (buffer-modified-p (current-buffer))\n                         (file-remote-p buffer-file-name)))\n         (skip (and (not use-stdin)\n                    (save-excursion (goto-char (point-min)) (looking-at-p \"#!\")))))\n    (cl-values use-stdin skip)))\n\n(defun php-flymake--diagnostics (locus source)\n  \"Parse output of `php -l' command in SOURCE buffer.  LOCUS means filename.\"\n  (unless (eval-when-compile (and (fboundp 'flymake-make-diagnostic)\n                                  (fboundp 'flymake-diag-region)))\n    (error \"`php-flymake' requires Emacs 26.1 or later\"))\n  (cl-loop\n   while (search-forward-regexp php-flymake--diaggnostics-pattern nil t)\n   for msg = (match-string 2)\n   for line = (string-to-number (match-string 4))\n   for diag = (or (pcase-let ((`(,beg . ,end)\n                               (flymake-diag-region source line)))\n                    (flymake-make-diagnostic source beg end :error msg))\n                  (flymake-make-diagnostic locus (cons line nil) nil :error msg))\n     return (list diag)))\n\n(defun php-flymake--build-command-line (file)\n  \"Return the command line for `php -l' FILE.\"\n  (let* ((command-args (or php-flymake-executable-command-args\n                           (list (or (bound-and-true-p php-executable) \"php\"))))\n         (cmd (car-safe command-args))\n         (default-directory (expand-file-name \"~\")))\n    (unless (or (file-executable-p cmd)\n                (executable-find cmd))\n      (user-error \"`%s' is not valid command\" cmd))\n    (nconc command-args\n           (list \"-d\" \"display_errors=0\")\n           (when file (list \"-f\" file))\n           (list \"-l\"))))\n\n(defun php-flymake--make-process (report-fn locus source use-stdin)\n  \"Make PHP process for syntax check SOURCE buffer.\n\nSee `flymake-diagnostic-functions' about REPORT-FN parameter.\nSee `flymake-make-diagnostic' about LOCUS parameter.\"\n  (make-process\n   :name \"php-flymake\"\n   :buffer (generate-new-buffer \"*flymake-php-flymake*\")\n   :command (php-flymake--build-command-line (unless use-stdin locus))\n   :noquery t :connection-type 'pipe\n   :sentinel\n   (lambda (p _ev)\n     (unwind-protect\n         (when (and (eq 'exit (process-status p))\n                    (with-current-buffer source (eq p php-flymake--proc)))\n           (with-current-buffer (process-buffer p)\n             (goto-char (point-min))\n             (funcall report-fn\n                      (if (zerop (process-exit-status p))\n                          nil\n                        (php-flymake--diagnostics locus source)))))\n       (unless (process-live-p p)\n         ;; (display-buffer (process-buffer p)) ; uncomment to debug\n         (kill-buffer (process-buffer p)))))))\n\n(provide 'php-flymake)\n;;; php-flymake.el ends here\n"
  },
  {
    "path": "lisp/php-format.el",
    "content": ";;; php-format.el --- Code reformatter for PHP buffer  -*- lexical-binding: t; -*-\n\n;; Copyright (C) 2020  Friends of Emacs-PHP development\n\n;; Author: USAMI Kenta <tadsan@zonu.me>\n;; Created: 5 Mar 2023\n;; Version: 0.1.0\n;; Keywords: tools, php\n;; URL: https://github.com/emacs-php/php-mode.el\n;; License: GPL-3.0-or-later\n\n;; This program is free software; you can redistribute it and/or modify\n;; it under the terms of the GNU General Public License as published by\n;; the Free Software Foundation, either version 3 of the License, or\n;; (at your option) any later version.\n\n;; This program is distributed in the hope that it will be useful,\n;; but WITHOUT ANY WARRANTY; without even the implied warranty of\n;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;; GNU General Public License for more details.\n\n;; You should have received a copy of the GNU General Public License\n;; along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n;;; Commentary:\n\n;; This feature is for execute PHP code formatting tools.\n\n;; ## Supported tools:\n;;\n;; - Easy Coding Standard (ecs) https://github.com/easy-coding-standard/easy-coding-standard\n;; - PHP-CS-Fixer (php-cs-fixer) https://github.com/PHP-CS-Fixer/PHP-CS-Fixer\n;; - PHP_CodeSniffer (phpcbf) https://github.com/squizlabs/PHP_CodeSniffer\n;;\n;; It supports both per-project and globally installed ones.\n;;\n;; ## How to use\n;;\n;; Add following line to setup function for php-mode.\n;;\n;;     (php-format-auto-mode +1)\n;;\n;; ## Customization\n;;\n;; These variables can be set either by dir-locals.el or by custom-set-variable.\n;;\n;; - php-format-auto-mode-hook-depth\n;; - php-format-command\n;; - php-format-command-dir\n;; - php-format-default-idle-time\n;; - php-format-result-display-method-alist\n;;\n;; ## Display methods\n;;\n;; How formatting is performed and how the results are displayed can be controlled\n;; by the following keywords.\n;;\n;; - idle: Asynchronously apply formatting to idle time in Emacs using `run-with-idle-timer'\n;; - async: Immediately execute an asynchronous process to apply formatting\n;; - compile: Apply formatting using the compile command.  Doesn't lock, but results pop up\n;; - silent: Apply formatting immediately and synchronously.\n;;   No message is displayed, but Emacs is locked while it is being processed.\n;; - nil: Apply formatting immediately and synchronously.\n;;   Emacs will be locked until formatting is done and the result will pop up.\n;;\n\n;;; Code:\n(require 'cl-lib)\n(require 'php-project)\n\n(defvar php-format-formatter-alist\n  '((ecs :marker (\"ecs.php\")\n         :command (\"ecs\" \"check\" \"--fix\" \"--no-progress-bar\" \"--\"))\n    (php-cs-fixer :marker (\".php-cs-fixer.dist.php\" \".php-cs-fixer.php\")\n                  :command (\"php-cs-fixer\" \"fix\" \"--show-progress=none\"))\n    (phpcbf :marker (\"phpcs.xml.dist\" \"phpcs.xml\")\n            :command (\"phpcbf\"))))\n\n(defvar php-format-lighter \" phpf\")\n(defvar php-format-output-buffer \" *PHP Format*\")\n(defvar php-format--exec-method nil)\n(defvar php-format--idle-timer nil)\n\f\n;; Customize variables\n(defgroup php-format nil\n  \"Apply code reformat.\"\n  :tag \"PHP Format\"\n  :group 'php)\n\n(defcustom php-format-auto-mode-hook-depth -50\n  \"A depth number in the range -100..100 for `add-hook'.\"\n  :tag \"PHP Format Auto Mode Hook Depth\"\n  :type 'integer\n  :safe #'integerp\n  :group 'php)\n\n(defcustom php-format-command 'auto\n  \"A formatter symbol, or a list of command and arguments.\"\n  :tag \"PHP Format Command\"\n  :type '(choice (const :tag \"Disabled reformat codes\" nil)\n                 (const :tag \"Auto\" auto)\n                 (const :tag \"Easy Coding Standard\" ecs)\n                 (const :tag \"PHP-CS-Fixer\" php-cs-fixer)\n                 (const :tag \"PHP Code Beautifier and Fixer\" phpcbf)\n                 (repeat :tag \"Command and arguments\" string))\n  :safe (lambda (v) (or (symbolp v) (listp v)))\n  :group 'php-format)\n\n(defcustom php-format-command-dir \"vendor/bin\"\n  \"A relative path to the directory where formatting tool is installed.\"\n  :tag \"PHP Format Command\"\n  :type 'string\n  :safe #'stringp\n  :group 'php-format)\n\n(defcustom php-format-default-idle-time 3\n  \"Number of seconds to wait idle before formatting.\"\n  :tag \"PHP Format Auto Mode Hook Depth\"\n  :type 'integer\n  :safe #'integerp\n  :group 'php)\n\n(defcustom php-format-result-display-method-alist '((php-format-on-after-save-hook . idle)\n                                          (php-format-this-buffer-file . silent)\n                                          (php-format-project . compile))\n  \"An alist of misplay the result method of the formatting process.\"\n  :tag \"PHP Format Result Display Method\"\n  :type '(alist :key-type function\n                :value-type symbol)\n  :group 'php-format)\n\n(defcustom php-format-disable-async-format-buffer-has-modified t\n  \"When set to non-NIL, disables async formatting if buffer is modified (unsaved).\"\n  :tag \"PHP Format Disable Async Format Buffer Has Modified\"\n  :type 'boolean\n  :group 'php-format)\n\f\n;; Internal functions\n(defsubst php-format--register-timer (sec command-args)\n  \"Register idle-timer with SEC and COMMAND-ARGS.\"\n  (unless php-format--idle-timer\n    (setq php-format--idle-timer\n          (run-with-idle-timer sec nil #'php-format--execute-delayed-format\n                               default-directory command-args))))\n\n(defun php-format--execute-format (files)\n  \"Execute PHP formatter with FILES.\"\n  (let* ((default-directory (php-project-get-root-dir))\n         (command-args (php-format--get-command-args))\n         command-line)\n    (when (null command-args)\n      (user-error \"No available PHP formatter settings detected\"))\n    (setq command-args (append command-args files))\n    (setq command-line (mapconcat #'shell-quote-argument command-args \" \"))\n    (pcase php-format--exec-method\n      (`(idle ,sec) (php-format--register-timer sec command-args))\n      ('idle (php-format--register-timer php-format-default-idle-time command-args))\n      ('async (apply #'call-process-shell-command (car command-args) nil nil nil\n                     (append (cdr command-args) (list \"&\"))))\n      ('compile (compile command-line))\n      ('silent (shell-command-to-string command-line))\n      ('nil (shell-command command-line))\n      (_ (user-error \"`%s' is unexpected php-format--exec-method\" php-format--exec-method)))))\n\n(defun php-format--get-command-args ()\n  \"Return a list of command and arguments.\"\n  (if (listp php-format-command)\n      php-format-command\n    (let ((cmd php-format-command)\n          args executable vendor)\n      (when (eq 'auto cmd)\n        (setq cmd (cl-loop for (sym . plist) in php-format-formatter-alist\n                           for files = (plist-get plist :marker)\n                           if (cl-find-if\n                               (lambda (file) (file-exists-p (expand-file-name file default-directory)))\n                               files)\n                           return sym))\n        (setq-local php-format-command cmd))\n      (when-let* ((tup (plist-get (cdr-safe (assq cmd php-format-formatter-alist)) :command)))\n        (setq executable (car tup))\n        (setq args (cdr tup))\n        (setq vendor (expand-file-name executable (expand-file-name php-format-command-dir default-directory)))\n        (cond\n         ((file-exists-p vendor) (cons vendor args))\n         ((executable-find executable) (cons executable args)))))))\n\n(defun php-format--execute-delayed-format (dir command-args)\n  \"Asynchronously execute PHP format with COMMAND-ARGS in DIR.\"\n  (setq php-format--idle-timer nil)\n  (let ((default-directory dir))\n    (when (not (and php-format-disable-async-format-buffer-has-modified\n                    (buffer-modified-p)))\n      (apply #'call-process-shell-command (car command-args) nil nil nil\n             (append (cdr command-args) (list \"&\"))))))\n\f\n;; Public functions and minor mode\n\n;;;###autoload\n(defun php-format-this-buffer-file ()\n  \"Apply format this buffer file.\"\n  (interactive)\n  (when php-format-command\n    (when (null buffer-file-name)\n      (user-error \"This file has not yet been saved\"))\n    (when (file-remote-p buffer-file-name)\n      (user-error \"PHP Format feature does not yet support remote files\"))\n    (let ((php-format--exec-method (cdr-safe (assq 'php-format-this-buffer-file php-format-result-display-method-alist))))\n      (php-format--execute-format (list buffer-file-name)))))\n\n;;;###autoload\n(defun php-format-project ()\n  \"Apply format this buffer file.\"\n  (interactive)\n  (unless php-format-command\n    (user-error \"Disabled `php-format-command' in this project\"))\n  (let ((php-format--exec-method (cdr-safe (assq 'php-format-project php-format-result-display-method-alist))))\n    (php-format--execute-format nil)))\n\n;;;###autoload\n(defun php-format-on-after-save-hook ()\n  \"Apply format on after save hook.\"\n  (when (and php-format-command buffer-file-name (not (file-remote-p buffer-file-name)))\n    (let ((php-format--exec-method (cdr-safe (assq 'php-format-on-after-save-hook php-format-result-display-method-alist))))\n    (php-format--execute-format nil))))\n\n;;;###autoload\n(define-minor-mode php-format-auto-mode\n  \"Automatically apply formatting when saving an edited file.\"\n  :group 'php-format\n  :lighter php-format-lighter\n  (if php-format-auto-mode\n      (add-hook 'after-save-hook 'php-format-on-after-save-hook php-format-auto-mode-hook-depth t)\n    (remove-hook 'after-save-hook 'php-format-on-after-save-hook t)))\n\n(provide 'php-format)\n;;; php-format.el ends here\n"
  },
  {
    "path": "lisp/php-ide-phpactor.el",
    "content": ";;; php-ide-phpactor.el --- PHP-IDE feature using Phpactor RPC -*- lexical-binding: t; -*-\n\n;; Copyright (C) 2023  Friends of Emacs-PHP development\n\n;; Author: USAMI Kenta <tadsan@zonu.me>\n;; Keywords: tools, files\n;; URL: https://github.com/emacs-php/php-mode\n;; Version: 1.26.1\n;; License: GPL-3.0-or-later\n\n;; This program is free software; you can redistribute it and/or modify\n;; it under the terms of the GNU General Public License as published by\n;; the Free Software Foundation, either version 3 of the License, or\n;; (at your option) any later version.\n\n;; This program is distributed in the hope that it will be useful,\n;; but WITHOUT ANY WARRANTY; without even the implied warranty of\n;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;; GNU General Public License for more details.\n\n;; You should have received a copy of the GNU General Public License\n;; along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n;;; Commentary:\n\n;; PHP-IDE implementation to integrate Phpactor (phpactor.el).\n;; This feature depends on <https://github.com/emacs-php/phpactor.el>.\n\n;;; Code:\n(require 'phpactor nil t)\n(require 'popup nil t)\n(require 'smart-jump nil t)\n(require 'cl-lib)\n\n(defvar-local php-ide-phpactor-buffer nil)\n(defvar-local php-ide-phpactor-hover-last-pos nil)\n(defvar-local php-ide-phpactor-hover-last-msg nil)\n\n(declare-function phpactor--command-argments \"ext:phpactor\" (&rest arg-keys))\n(declare-function phpactor--parse-json \"ext:phpactor\" (buffer))\n(declare-function phpactor--rpc-async \"ext:phpactor\" (action arguments callback))\n(declare-function phpactor-goto-definition \"ext:phpactor\" ())\n(declare-function popup-tip \"ext:popup\" (string))\n(declare-function smart-jump-back \"ext:smart-jump\" ())\n(declare-function smart-jump-go \"ext:smart-jump\" (&optional smart-list continue))\n(declare-function smart-jump-references \"ext:smart-jump\" (&optional smart-list continue))\n\n(defgroup php-ide-phpactor nil\n  \"UI support for PHP developing.\"\n  :tag \"PHP-IDE Phpactor\"\n  :prefix \"php-ide-phpactor-\"\n  :group 'php-ide)\n\n(defcustom php-ide-phpactor-activate-features '(all)\n  \"A set of Phpactor features you want to enable.\"\n  :tag \"PHP-IDE Phpactor Activate Features\"\n  :type '(set (const :tag \"All\" all)\n              (const hover)\n              (const navigation))\n  :safe (lambda (xs) (and (listp xs)\n                          (cl-every (lambda (x) (memq x '(all hover navigation))) xs)))\n  :group 'php-ide-phpactor)\n\n(defvar php-ide-phpactor-timer nil\n  \"Timer object for execute Phpactor and display hover message.\")\n\n(defvar php-ide-phpactor-disable-hover-at-point-functions\n  '(php-in-string-or-comment-p))\n\n(defun php-ide-phpactor--disable-hover-at-point-p ()\n  \"Return non-NIL if any function return non-NIL for disable to hover at point.\"\n  (cl-loop for f in php-ide-phpactor-disable-hover-at-point-functions\n           never (not (funcall f))))\n\n(defun php-ide-phpactor-hover ()\n  \"Show brief information about the symbol underneath the cursor.\"\n  (interactive)\n  (when (and php-ide-phpactor-buffer (not (php-ide-phpactor--disable-hover-at-point-p)))\n    (if (eq (point) php-ide-phpactor-hover-last-pos)\n        (when php-ide-phpactor-hover-last-msg\n          (let ((msg php-ide-phpactor-hover-last-msg))\n            (setq php-ide-phpactor-hover-last-msg nil)\n            (popup-tip msg)))\n      (setq php-ide-phpactor-hover-last-pos (point))\n      (let ((main-buffer (current-buffer)))\n        (phpactor--rpc-async \"hover\" (phpactor--command-argments :source :offset)\n          (lambda (proc)\n            (let* ((response (phpactor--parse-json (process-buffer proc)))\n                   (msg (plist-get (plist-get response :parameters) :message)))\n              (with-current-buffer main-buffer\n                (setq php-ide-phpactor-hover-last-msg msg)))))))))\n\n(defsubst php-ide-phpactor--feature-activated-p (feature)\n  \"Is FEATURE activated in `php-ide-phpactor-activate-features'.\"\n  (or (memq 'all php-ide-phpactor-activate-features)\n      (memq feature php-ide-phpactor-activate-features)))\n\n;;;###autoload\n(defun php-ide-phpactor-activate ()\n  \"Activate PHP-IDE using phpactor.el.\"\n  (interactive)\n  (when (php-ide-phpactor--feature-activated-p 'navigation)\n    (if (not (bound-and-true-p phpactor-smart-jump-initialized))\n        (local-set-key [remap xref-find-definitions] #'phpactor-goto-definition)\n      (local-set-key [remap xref-find-definitions] #'smart-jump-go)\n      (local-set-key [remap xref-pop-marker-stack] #'smart-jump-back)\n      (local-set-key [remap xref-find-references] #'smart-jump-references)))\n  (when (php-ide-phpactor--feature-activated-p 'hover)\n    (unless php-ide-phpactor-timer\n      (setq php-ide-phpactor-timer (run-with-timer 0.8 0.8 #'php-ide-phpactor-hover))))\n  (setq php-ide-phpactor-buffer t))\n\n;;;###autoload\n(defun php-ide-phpactor-deactivate ()\n  \"Dectivate PHP-IDE using phpactor.el.\"\n  (interactive)\n  (local-unset-key [remap xref-find-definitions])\n  (local-unset-key [remap xref-pop-marker-stack])\n  (local-unset-key [remap xref-find-references])\n\n  (when php-ide-phpactor-timer\n    (cancel-timer php-ide-phpactor-timer)\n    (setq php-ide-phpactor-timer nil))\n  (setq php-ide-phpactor-buffer nil))\n\n(provide 'php-ide-phpactor)\n;;; php-ide-phpactor.el ends here\n"
  },
  {
    "path": "lisp/php-ide.el",
    "content": ";;; php-ide.el --- IDE-like UI support for PHP development -*- lexical-binding: t; -*-\n\n;; Copyright (C) 2023  Friends of Emacs-PHP development\n\n;; Author: USAMI Kenta <tadsan@zonu.me>\n;; Keywords: tools, files\n;; URL: https://github.com/emacs-php/php-mode\n;; Version: 1.26.1\n;; License: GPL-3.0-or-later\n\n;; This program is free software; you can redistribute it and/or modify\n;; it under the terms of the GNU General Public License as published by\n;; the Free Software Foundation, either version 3 of the License, or\n;; (at your option) any later version.\n\n;; This program is distributed in the hope that it will be useful,\n;; but WITHOUT ANY WARRANTY; without even the implied warranty of\n;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;; GNU General Public License for more details.\n\n;; You should have received a copy of the GNU General Public License\n;; along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n;;; Commentary:\n\n;; PHP Mode integrates LSP Mode (lsp-mode), Phpactor (phpactor.el) and IDE-like tools.\n;;\n;; **Note**:\n;; This feature is under development and experimental.\n;; All of these functions, modes and terms are subject to change without notice.\n;;\n;; ## Motivations\n;;\n;; There are some IDE-like features / packages for PHP development.\n;; PHP-IDE bridges projects and their IDE-like features.\n;;\n;; ## IDE Features\n;;\n;; We don't recommend features, but bundle some feature bridges.\n;; They are sorted alphabetically except \"none.\"\n;;\n;;  - none\n;;      Does not launch any IDE features.\n;;  - eglot\n;;      https://github.com/joaotavora/eglot\n;;  - lsp-bridge\n;;      https://github.com/manateelazycat/lsp-bridge\n;;  - lsp-mode\n;;      https://emacs-lsp.github.io/lsp-mode/\n;;      https://github.com/emacs-lsp/lsp-mode\n;;  - phpactor\n;;      https://phpactor.readthedocs.io/\n;;      https://github.com/phpactor/phpactor\n;;      https://github.com/emacs-php/phpactor.el\n;;\n;; ## Configuration\n;;\n;; Put follows code into your .emacs (~/.emacs.d/init.el) file:\n;;\n;;     (defun init-php-mode-setup ()\n;;       (add-hook 'hack-local-variables-hook #'php-ide-mode t t))\n;;\n;;     (defun init-php-ide-mode-setup (feature activate)\n;;         (pcase feature\n;;           (`lsp-bridge\n;;            (if activate\n;;                (progn (yas-minor-mode +1)\n;;                       (corfu-mode -1))\n;;              (yas-minor-mode -1)\n;;              (corfu-mode +1)))))\n;;\n;;     (with-eval-after-load 'php-ide\n;;       (custom-set-variables\n;;        '(php-ide-features . 'eglot) ;; and/or 'none, 'phpactor, 'lsp-mode\n;;        '(php-ide-eglot-executable \"psalm-language-server\") ;; or \"intelephense\", '(\"php\" \"vendor/bin/path/to/server\")\n;;        ;; If you want to hide php-ide-mode from the mode line, set an empty string\n;;        '(php-ide-mode-lighter \"\"))\n;;\n;;       (add-hook 'php-mode-hook #'init-php-mode-setup)\n;;       (add-hook 'php-ide-mode-functions #'init-php-ide-mode-setup))\n;;\n;; If you don't enable IDE support by default, set '(php-ide-feature 'none)\n;;\n;; ### For per project configuration\n;;\n;; Put follows code into .dir-locals.el in project directory:\n;;\n;;     ((nil (php-project-root . git)\n;;           (php-ide-features . (lsp-mode))))\n;;\n;; If you can't put .dir-locals.el in your project directory, consider the sidecar-locals package.\n;;     https://melpa.org/#/sidecar-locals\n;;     https://codeberg.org/ideasman42/emacs-sidecar-locals\n;;\n\n;;; Code:\n(require 'cl-lib)\n(require 'php-project)\n\n(eval-when-compile\n  (require 'php-ide-phpactor)\n  (defvar eglot-server-programs)\n  (declare-function lsp-bridge-mode \"ext:lsp-bridge\" ())\n  (declare-function eglot-ensure \"ext:eglot\" ())\n  (declare-function eglot--managed-mode-off \"ext:eglot\" ())\n  (declare-function phpactor--find-executable \"ext:phpactor\" ()))\n\n(defvar php-ide-feature-alist\n  '((none :test (lambda () t)\n          :activate (lambda () t)\n          :deactivate (lambda () t))\n    (phpactor :test (lambda () (and (require 'phpactor nil t) (featurep 'phpactor)))\n              :activate php-ide-phpactor-activate\n              :deactivate php-ide-phpactor-activate)\n    (eglot :test (lambda () (and (require 'eglot nil t) (featurep 'eglot)))\n           :activate eglot-ensure\n           :deactivate eglot--managed-mode-off)\n    (lsp-bridge :test (lambda () (and (require 'lsp-bridge nil t) (featurep 'lsp-bridge)))\n                :activate (lambda () (lsp-bridge-mode +1))\n                :deactivate (lambda () (lsp-bridge-mode -1)))\n    (lsp-mode :test (lambda () (and (require 'lsp nil t) (featurep 'lsp)))\n              :activate lsp\n              :deactivate lsp-workspace-shutdown)))\n\n(defvar php-ide-lsp-command-alist\n  '((intelephense \"intelephense\" \"--stdio\")\n    (phpactor . (lambda () (list (if (fboundp 'phpactor--find-executable)\n                                     (phpactor--find-executable)\n                                   \"phpactor\")\n                                 \"language-server\")))))\n\n(defgroup php-ide nil\n  \"IDE-like support for PHP developing.\"\n  :tag \"PHP-IDE\"\n  :prefix \"php-ide-\"\n  :group 'php)\n\n;;;###autoload\n(defcustom php-ide-features nil\n  \"A set of PHP-IDE features symbol.\"\n  :tag \"PHP-IDE Feature\"\n  :group 'php-ide\n  :type `(set ,@(mapcar (lambda (feature) (list 'const (car feature)))\n                       php-ide-feature-alist)\n              symbol)\n  :safe (lambda (v) (cl-loop for feature in (if (listp v) v (list v))\n                             always (symbolp feature))))\n\n;;;###autoload\n(defcustom php-ide-eglot-executable nil\n  \"Command name or path to the command of Eglot LSP executable.\"\n  :tag \"PHP-IDE Eglot Executable\"\n  :group 'php-ide\n  :type '(choice\n          (const intelephense)\n          (const phpactor)\n          string (repeat string))\n  :safe (lambda (v) (cond\n                     ((stringp v) (file-exists-p v))\n                     ((listp v) (cl-every #'stringp v))\n                     ((assq v php-ide-lsp-command-alist)))))\n\n;;;###autoload\n(defun php-ide-eglot-server-program ()\n  \"Return a list of command to execute LSP Server.\"\n  (cond\n   ((stringp php-ide-eglot-executable) (list php-ide-eglot-executable))\n   ((listp php-ide-eglot-executable) php-ide-eglot-executable)\n   ((when-let* ((command (assq php-ide-eglot-executable php-ide-lsp-command-alist)))\n      (cond\n       ((functionp command) (funcall command))\n       ((listp command) command))))))\n\n(defcustom php-ide-mode-lighter \" PHP-IDE\"\n  \"A symbol of PHP-IDE feature.\"\n  :tag \"PHP-IDE Mode Lighter\"\n  :group 'php-ide\n  :type 'string\n  :safe #'stringp)\n\n;;;###autoload\n(defcustom php-ide-mode-functions nil\n  \"Hook functions called when before activating or deactivating PHP-IDE.\nNotice that two arguments (FEATURE ACTIVATE) are given.\n\nFEATURE: A symbol, like \\\\='lsp-mode.\nACTIVATE: T is given when activeting, NIL when deactivating PHP-IDE.\"\n  :tag \"PHP-IDE Mode Functions\"\n  :group 'php-ide\n  :type '(repeat function)\n  :safe (lambda (functions)\n          (and (listp functions) (cl-every #'functionp functions))))\n\n;;;###autoload\n(define-minor-mode php-ide-mode\n  \"Minor mode for integrate IDE-like tools.\"\n  :lighter php-ide-mode-lighter\n  (let ((ide-features php-ide-features))\n    (when-let* ((unavailable-features (cl-loop for feature in ide-features\n                                               unless (assq feature php-ide-feature-alist)\n                                               collect feature)))\n      (user-error \"%s includes unavailable PHP-IDE features.  (available features are: %s)\"\n                  ide-features\n                  (mapconcat (lambda (feature) (concat \"'\" (symbol-name feature)))\n                             (php-ide--avilable-features) \", \")))\n    (cl-loop for feature in ide-features\n             for ide-plist = (cdr-safe (assq feature php-ide-feature-alist))\n             do (if (null ide-plist)\n                    (message \"Please set `php-ide-feature' variable in .dir-locals.el or custom variable\")\n                  (run-hook-with-args 'php-ide-mode-functions feature php-ide-mode)\n                  (if php-ide-mode\n                      (php-ide--activate-buffer feature ide-plist)\n                    (php-ide--deactivate-buffer ide-plist))))))\n\n;;;###autoload\n(defun php-ide-turn-on ()\n  \"Turn on PHP IDE-FEATURES and execute `php-ide-mode'.\"\n  (unless php-ide-features\n    (user-error \"No PHP-IDE feature is installed.  Install the lsp-mode, lsp-bridge, eglot or phpactor package\"))\n  (php-ide-mode +1))\n\n(defun php-ide--activate-buffer (name ide-plist)\n  \"Activate php-ide implementation by NAME and IDE-PLIST.\"\n  (unless (funcall (plist-get ide-plist :test))\n    (user-error \"PHP-IDE feature `%s' is not available\" name))\n  (funcall (plist-get ide-plist :activate)))\n\n(defun php-ide--deactivate-buffer (ide-plist)\n  \"Deactivate php-ide implementation by IDE-PLIST.\"\n  (funcall (plist-get ide-plist :deactivate)))\n\n(defun php-ide--avilable-features ()\n  \"Return list of available PHP-IDE features.\"\n  (cl-loop for (ide . plist) in php-ide-feature-alist\n           if (funcall (plist-get plist :test))\n           collect ide))\n\n(provide 'php-ide)\n;;; php-ide.el ends here\n"
  },
  {
    "path": "lisp/php-local-manual.el",
    "content": ";;; php-local-manual.el --- Tools for local PHP manual -*- lexical-binding: t; -*-\n\n;; Copyright (C) 2023  Friends of Emacs-PHP development\n\n;; Author: phil-s\n;; Maintainer: USAMI Kenta <tadsan@zonu.me>\n;; URL: https://github.com/emacs-php/php-mode/wiki/Local-PHP-Manual\n;; Keywords: docs, php\n;; Version: 2.0.0\n;; License: GPL-3.0-or-later\n\n;; This program is free software; you can redistribute it and/or modify\n;; it under the terms of the GNU General Public License as published by\n;; the Free Software Foundation, either version 3 of the License, or\n;; (at your option) any later version.\n\n;; This program is distributed in the hope that it will be useful,\n;; but WITHOUT ANY WARRANTY; without even the implied warranty of\n;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;; GNU General Public License for more details.\n\n;; You should have received a copy of the GNU General Public License\n;; along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n;;; Commentary:\n\n;; This package helps you search the locally installed PHP Manual.\n;; If you're only developing online, this feature is probably unnecessary.\n;;\n;; ## Notice\n;;\n;; This file is marked as an unmaintained feature.\n;; https://github.com/emacs-php/php-mode/wiki/Unmaintained-Features\n;;\n;; ## How to use\n;;\n;; see https://github.com/emacs-php/php-mode/wiki/Local-PHP-Manual\n;;\n;; ### php-local-manual-search\n;;\n;; Put follows code into your .emacs (~/.emacs.d/init.el) file:\n;;\n;;     (custom-set-variables\n;;      '(php-manual-path (expand-file-name \"~/local/share/php-manual\"))\n;;      '(php-search-documentation-function #'php-local-manual-search))\n;;\n\n;;; Code:\n(require 'php)\n(require 'etags)\n\n(defconst php-local-manual-documentation-types\n  '(\"function\" \"control-structures\" \"class\" \"book\")\n  ;; \"intro\" and \"ref\" also look interesting, but for all practical purposes\n  ;; their terms are sub-sets of the \"book\" terms (with the few exceptions\n  ;; being very unlikely search terms).\n  \"The set (and priority sequence) of documentation file prefixes\nunder which to search for files in the local documentation directory.\")\n\n(defvar php-local-manual--words-cache nil)\n\n(defun php-local-manual--read-arg ()\n  \"Obtain interactive argument for searching documentation.\"\n  ;; Cache the list of documentation words available for completion,\n  ;; based on the defined types-of-interest.\n  (let ((types-list php-local-manual-documentation-types)\n        (words-cache php-local-manual--words-cache)\n        (local-manual (and (stringp php-manual-path)\n                           (not (string= php-manual-path \"\")))))\n    (when (and local-manual\n               (not (assq types-list words-cache)))\n      ;; Generate the cache on the first run, or if the types changed.\n      ;; We read the filenames matching our types list in the local\n      ;; documentation directory, and extract the 'middle' component\n      ;; of each. e.g. \"function.array-map.html\" => \"array_map\".\n      (let* ((types-opt (regexp-opt types-list))\n             (pattern (concat \"\\\\`\" types-opt \"\\\\.\\\\(.+\\\\)\\\\.html\\\\'\"))\n             (collection\n              (mapcar (lambda (filename)\n                        (subst-char-in-string ?- ?_ (replace-regexp-in-string\n                                                     pattern \"\\\\1\" filename)))\n                      (directory-files php-manual-path nil pattern))))\n        ;; Replace the entire cache. If the types changed, we don't need\n        ;; to retain the collection for the previous value.\n        (setq words-cache (list (cons types-list collection)))\n        (setq php-local-manual--words-cache words-cache)))\n    ;; By default we search for (current-word) immediately, without prompting.\n    ;; With a prefix argument, or if there is no (current-word), we perform a\n    ;; completing read for a word from the cached collection.\n    (let* ((default (current-word))\n           (prompt (if default\n                       (format \"Search PHP docs (%s): \" default)\n                     \"Search PHP docs: \"))\n           (collection (and local-manual\n                            (cdr (assq types-list words-cache))))\n           (word (if (or current-prefix-arg (not default))\n                     (completing-read prompt collection nil nil nil nil default)\n                   default)))\n      ;; Return interactive argument list.\n      (list word))))\n\n;;;###autoload\n(defun php-local-manual-search (word)\n  \"Search the local PHP documentation (i.e. in `php-manual-path') for\nthe word at point.  The function returns t if the requested documentation\nexists, and nil otherwise.\n\nWith a prefix argument, prompt (with completion) for a word to search for.\"\n  (interactive (php-local-manual--read-arg))\n  (let ((file (catch 'found\n                (cl-loop for type in php-local-manual-documentation-types do\n                         (let* ((doc-html (format \"%s.%s.html\"\n                                                  type\n                                                  (replace-regexp-in-string\n                                                   \"_\" \"-\" (downcase word))))\n                                (file (expand-file-name doc-html  php-manual-path)))\n                           (when (file-exists-p file)\n                             (throw 'found file)))))))\n    (when file\n      (let ((file-url (if (string-prefix-p \"file://\" file)\n                          file\n                        (concat \"file://\" file))))\n        (php-browse-documentation-url file-url))\n      t)))\n\n;;;###autoload\n(define-obsolete-function-alias 'php-search-local-documentation #'php-local-manual-search \"2.0.0\")\n\f\n;; Define function name completion function\n(defvar php-local-manual--completion-table nil\n  \"Obarray of tag names defined in current tags table and functions known to PHP.\")\n\n(defun php-local-manual-complete-function ()\n  \"Perform function completion on the text around point.\nCompletes to the set of names listed in the current tags table\nand the standard php functions.\nThe string to complete is chosen in the same way as the default\nfor \\\\[find-tag] (which see).\"\n  (interactive)\n  (let ((pattern (php-get-pattern))\n        beg\n        completion\n        (php-functions (php-local-manual-completion-table)))\n    (if (not pattern) (message \"Nothing to complete\")\n        (if (not (search-backward pattern nil t))\n            (message \"Can't complete here\")\n          (setq beg (point))\n          (forward-char (length pattern))\n          (setq completion (try-completion pattern php-functions nil))\n          (cond ((eq completion t))\n                ((null completion)\n                 (message \"Can't find completion for \\\"%s\\\"\" pattern)\n                 (ding))\n                ((not (string= pattern completion))\n                 (delete-region beg (point))\n                 (insert completion))\n                (t\n                 (let ((selected (completing-read\n                                  \"Select completion: \"\n                                  (all-completions pattern php-functions)\n                                  nil t pattern)))\n                   (delete-region beg (point))\n                   (insert selected))))))))\n\n(defun php-local-manual-completion-table ()\n  \"Build variable `php-local-manual--completion-table' on demand.\nThe table includes the PHP functions and the tags from the\ncurrent `tags-file-name'.\"\n  (or (and tags-file-name\n           (save-excursion (tags-verify-table tags-file-name))\n           php-local-manual--completion-table)\n      (let ((tags-table\n             (when tags-file-name\n               (with-current-buffer (get-file-buffer tags-file-name)\n                 (etags-tags-completion-table))))\n            (php-table\n             (cond ((and (not (string= \"\" php-completion-file))\n                         (file-readable-p php-completion-file))\n                    (php-local-manual-build-table-from-file php-completion-file))\n                   ((and (not (string= \"\" php-manual-path))\n                         (file-directory-p php-manual-path))\n                    (php-local-manual-build-table-from-path php-manual-path))\n                   (t nil))))\n        (unless (or php-table tags-table)\n          (user-error\n           (concat \"No TAGS file active nor are \"\n                   \"`php-completion-file' or `php-manual-path' set\")))\n        (when tags-table\n          ;; Combine the tables.\n          (if (obarrayp tags-table)\n              (mapatoms (lambda (sym) (intern (symbol-name sym) php-table))\n                        tags-table)\n            (setq php-table (append tags-table php-table))))\n        (setq php-local-manual--completion-table php-table))))\n\n(defun php-local-manual-build-table-from-file (filename)\n  \"Build a table of PHP function names from FILENAME.\"\n  (let ((table (make-vector 1022 0))\n        (buf (find-file-noselect filename)))\n    (with-current-buffer buf\n      (goto-char (point-min))\n      (while (re-search-forward\n              \"^\\\\([-a-zA-Z0-9_.]+\\\\)\\n\"\n              nil t)\n        (intern (buffer-substring (match-beginning 1) (match-end 1))\n                table)))\n    (kill-buffer buf)\n    table))\n\n(defun php-local-manual-build-table-from-path (path)\n  \"Return list of PHP function name from `PATH' directory.\"\n  (save-match-data\n    (cl-loop for file in (directory-files path nil \"^function\\\\..+\\\\.html$\")\n             if (string-match \"\\\\.\\\\([-a-zA-Z_0-9]+\\\\)\\\\.html$\" file)\n             collect (replace-regexp-in-string\n                      \"-\" \"_\" (substring file (match-beginning 1) (match-end 1)) t))))\n\n(provide 'php-local-manual)\n;;; php-local-manual.el ends here\n"
  },
  {
    "path": "lisp/php-mode-debug.el",
    "content": ";;; php-mode-debug.el --- Debug functions for PHP Mode  -*- lexical-binding: t; -*-\n\n;; Copyright (C) 2023  Friends of Emacs-PHP development\n\n;; Author: USAMI Kenta <tadsan@zonu.me>\n;; URL: https://github.com/emacs-php/php-mode\n;; Keywords: maint\n;; Version: 1.26.1\n;; License: GPL-3.0-or-later\n\n;; This program is free software; you can redistribute it and/or modify\n;; it under the terms of the GNU General Public License as published by\n;; the Free Software Foundation, either version 3 of the License, or\n;; (at your option) any later version.\n\n;; This program is distributed in the hope that it will be useful,\n;; but WITHOUT ANY WARRANTY; without even the implied warranty of\n;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;; GNU General Public License for more details.\n\n;; You should have received a copy of the GNU General Public License\n;; along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n;;; Commentary:\n\n;; Provides functions to debugging php-mode work.\n\n;;; Code:\n(require 'cc-mode)\n(require 'cus-edit)\n(require 'php-mode)\n(require 'package)\n(require 'pkg-info nil t)\n(require 'el-get nil t)\n\n(declare-function pkg-info-version-info \"ext:pkg-info\" (library &optional package show))\n\n(defun php-mode-debug-reinstall (force &optional called-interactive)\n  \"Reinstall PHP Mode to solve Cc Mode version mismatch.\n\nWhen FORCE, try to reinstall without interactively asking.\nWhen CALLED-INTERACTIVE then message the result.\"\n  (interactive (list (yes-or-no-p (if (string= php-mode-cc-version c-version)\n                                      \"No need to recompile, but force PHP Mode to reinstall? \"\n                                    \"Force reinstall PHP Mode? \"))\n                     t))\n  (let* ((cc-version-mismatched (string= php-mode-cc-version c-version))\n         (preface (if cc-version-mismatched\n                      \"\"\n                    \"CC Mode has been updated.  \")))\n    (if (catch 'success\n          (cond\n           ((and (not called-interactive)\n                 (not force)\n                 cc-version-mismatched)\n            nil)\n           ((and (package-installed-p 'php-mode)\n                 (or force\n                     (yes-or-no-p (format \"%sReinstall `php-mode' package? \" preface))))\n            (package-reinstall 'php-mode)\n            (throw 'success t))\n           ;; This clause is not included in the byte-compiled code when compiled without El-Get\n           ((and (eval-when-compile (and (fboundp 'el-get-package-is-installed)\n                                         (fboundp 'el-get-reinstall)))\n                 (el-get-package-is-installed 'php-mode)\n                 (or force\n                     (yes-or-no-p (format \"%sReinstall `php-mode' package by El-Get? \" preface))))\n            (el-get-reinstall 'php-mode)\n            (throw 'success t))\n           ((not called-interactive)\n            (user-error\n             (if cc-version-mismatched\n                 \"PHP Mode cannot be reinstalled automatically.  Please try manually if necessary\"\n               \"Please reinstall or byte recompile PHP Mode files manually\")))))\n        (user-error \"PHP Mode reinstalled successfully.  Please restart Emacs\")\n      (prog1 t\n        (when called-interactive\n          (message \"PHP Mode was not reinstalled\"))))))\n\n(defun php-mode-debug--buffer (&optional command &rest args)\n  \"Return buffer for php-mode-debug, and execute `COMMAND' with `ARGS'.\"\n  (with-current-buffer (get-buffer-create \"*PHP Mode DEBUG*\")\n    (cl-case command\n      (init (erase-buffer)\n            (goto-address-mode))\n      (top (goto-char (point-min)))\n      (insert (goto-char (point-max))\n              (apply #'insert args)))\n    (current-buffer)))\n\n(defun php-mode-debug--message (format-string &rest args)\n  \"Write message `FORMAT-STRING' and `ARGS' to debug buffer, like `message'.\"\n  (declare (indent 1))\n  (php-mode-debug--buffer 'insert (apply #'format format-string args) \"\\n\"))\n\n(defun php-mode-debug ()\n  \"Display informations useful for debugging PHP Mode.\"\n  (interactive)\n  (unless (eq major-mode 'php-mode)\n    (user-error \"Invoke this command only in php-mode buffer\"))\n  (php-mode-debug--buffer 'init)\n  (php-mode-debug--message \"Feel free to report on GitHub what you noticed!\")\n  (php-mode-debug--message \"https://github.com/emacs-php/php-mode/issues/new\")\n  (php-mode-debug--message \"\")\n  (php-mode-debug--message \"Pasting the following information on the issue will help us to investigate the cause.\")\n  (php-mode-debug--message \"```\")\n  (php-mode-debug--message \"--- PHP-MODE DEBUG BEGIN ---\")\n  (php-mode-debug--message \"versions: %s; %s; Cc Mode %s)\"\n    (emacs-version)\n    (php-mode-version)\n    (if (string= php-mode-cc-version c-version)\n        c-version\n      (format \"%s (php-mode-cc-version: %s *mismatched*)\" c-version php-mode-cc-version)))\n  (php-mode-debug--message \"package-version: %s\"\n    (if (fboundp 'pkg-info)\n        (pkg-info-version-info 'php-mode)\n      (let ((pkg (and (boundp 'package-alist)\n                      (cadr (assq 'php-mode package-alist)))))\n        (when (and pkg (member (package-desc-status pkg) '(\"unsigned\" \"dependency\")))\n          (package-version-join (package-desc-version pkg))))))\n\n  (php-mode-debug--message \"major-mode: %s\" major-mode)\n  (php-mode-debug--message \"minor-modes: %s\"\n    (cl-loop for s in minor-mode-list\n             unless (string-match-p \"global\" (symbol-name s))\n             if (and (boundp s) (symbol-value s))\n             collect s))\n  (php-mode-debug--message \"variables: %s\"\n    (cl-loop for v in '(indent-tabs-mode tab-width)\n             collect (list v (symbol-value v))))\n  (php-mode-debug--message \"custom variables: %s\"\n    (cl-loop for (v type) in (custom-group-members 'php nil)\n             if (eq type 'custom-variable)\n             collect (list v (symbol-value v))))\n  (php-mode-debug--message \"c-indentation-style: %s\" c-indentation-style)\n  (php-mode-debug--message \"c-style-variables: %s\"\n    (cl-loop for v in c-style-variables\n             unless (memq v '(c-doc-comment-style c-offsets-alist))\n             collect (list v (symbol-value v))))\n  (php-mode-debug--message \"c-doc-comment-style: %s\" c-doc-comment-style)\n  (php-mode-debug--message \"c-offsets-alist: %s\" c-offsets-alist)\n  (php-mode-debug--message \"buffer: %s\" (list :length (save-excursion (goto-char (point-max)) (point))))\n  (php-mode-debug--message \"--- PHP-MODE DEBUG END ---\")\n  (php-mode-debug--message \"```\\n\")\n  (php-mode-debug--message \"Thank you!\")\n  (pop-to-buffer (php-mode-debug--buffer 'top)))\n\n(provide 'php-mode-debug)\n;;; php-mode-debug.el ends here\n"
  },
  {
    "path": "lisp/php-mode.el",
    "content": ";;; php-mode.el --- Major mode for editing PHP code  -*- lexical-binding: t; -*-\n\n;; Copyright (C) 2024  Friends of Emacs-PHP development\n;; Copyright (C) 1999, 2000, 2001, 2003, 2004 Turadg Aleahmad\n;;               2008 Aaron S. Hawley\n;;               2011, 2012, 2013, 2014, 2015, 2016, 2017 Eric James Michael Ritz\n\n;; Author: Eric James Michael Ritz\n;; Maintainer: USAMI Kenta <tadsan@zonu.me>\n;; URL: https://github.com/emacs-php/php-mode\n;; Keywords: languages php\n;; Version: 1.26.1\n;; Package-Requires: ((emacs \"27.1\"))\n;; License: GPL-3.0-or-later\n\n(eval-and-compile\n  (make-obsolete-variable\n   (defconst php-mode-version-number \"1.26.1\" \"PHP Mode version number.\")\n   \"Please call (php-mode-version :as-number t) for compatibility.\" \"1.24.2\"))\n\n;; This program is free software; you can redistribute it and/or modify\n;; it under the terms of the GNU General Public License as published by\n;; the Free Software Foundation, either version 3 of the License, or\n;; (at your option) any later version.\n\n;; This program is distributed in the hope that it will be useful,\n;; but WITHOUT ANY WARRANTY; without even the implied warranty of\n;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;; GNU General Public License for more details.\n\n;; You should have received a copy of the GNU General Public License\n;; along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n;;; Commentary:\n\n;; PHP Mode is a major mode for editing PHP script.  It's an extension\n;; of CC mode; thus it inherits all C mode's navigation functionality.\n;; But it colors according to the PHP syntax and indents according to the\n;; PSR-2 coding guidelines.  It also includes a couple handy IDE-type\n;; features such as documentation search and a source and class browser.\n\n;; Please read the manual for setting items compatible with CC Mode.\n;; https://www.gnu.org/software/emacs/manual/html_mono/ccmode.html\n\n;; This mode is designed for PHP scripts consisting of a single <?php block.\n;; We recommend the introduction of Web Mode for HTML and Blade templates combined with PHP.\n;; http://web-mode.org/\n\n;; Modern PHP Mode can be set on a project basis by .dir-locals.el.\n;; Please read php-project.el for details of directory local variables.\n\n;; If you are using a package manager, you do not need (require 'php-mode) in\n;; your ~/.emacs.d/init.el.  Read the README for installation instructions.\n;; https://github.com/emacs-php/php-mode\n\n;;; Code:\n\n(require 'php)\n(require 'php-face)\n(require 'cc-mode)\n\n(eval-when-compile\n  (require 'cc-langs)\n  (require 'cc-fonts))\n\n;; Boilerplate from other `cc-mode' derived modes. See\n;; http://cc-mode.sourceforge.net/derived-mode-ex.el for details on how this all\n;; fits together.\n(eval-and-compile\n  (c-add-language 'php-mode 'java-mode))\n\n(require 'font-lock)\n(require 'custom)\n(require 'speedbar)\n(require 'imenu)\n(require 'consult-imenu nil t)\n(require 'package)\n(require 'nadvice)\n(require 'mode-local)\n(require 'php-project)\n\n(eval-when-compile\n  (require 'rx)\n  (require 'cl-lib)\n  (require 'flymake)\n  (require 'flymake-proc)\n  (require 'php-flymake)\n  (require 'regexp-opt)\n  (declare-function acm-backend-tabnine-candidate-expand \"ext:acm-backend-tabnine\"\n                    (candidate-info bound-start))\n  (defvar add-log-current-defun-header-regexp)\n  (defvar add-log-current-defun-function)\n  (defvar c-syntactic-context)\n  (defvar c-vsemi-status-unknown-p)\n  (defvar syntax-propertize-via-font-lock))\n\n(defconst php-mode-version-id\n  (eval-when-compile\n    (let ((fallback-version (format \"%s-non-vcs\" (with-no-warnings php-mode-version-number))))\n      (if (locate-dominating-file default-directory \".git\")\n          (save-match-data\n            (let ((tag (replace-regexp-in-string\n                        (rx bos \"v\") \"\"\n                        (shell-command-to-string \"git describe --tags\")))\n                  (pattern (rx (group (+ any)) eol)))\n              (if (string-match pattern tag)\n                  (match-string 0 tag)\n                (error \"Faild to obtain git tag\"))))\n        fallback-version)))\n  \"PHP Mode build ID.\n\nThe format is follows:\n\n\\\"1.23.4\\\": Tagged revision, compiled under Git VCS.\n\\\"1.23.4-56-xxxxxx\\\": 56 commits after the last tag release, compiled under Git.\n\\\"1.23.4-non-vcs\\\": Compiled in an environment not managed by Git VCS.\")\n\n(autoload 'php-mode-debug \"php-mode-debug\"\n  \"Display informations useful for debugging PHP Mode.\" t)\n\n(autoload 'php-mode-debug-reinstall \"php-mode-debug\"\n  \"Reinstall PHP Mode to solve Cc Mode version mismatch.\n\nWhen FORCE, try to reinstall without interactively asking.\nWhen CALLED-INTERACTIVE then message the result.\" t)\n\n\f\n;; Local variables\n\n;;;###autoload\n(defgroup php-mode nil\n  \"Major mode for editing PHP code.\"\n  :tag \"PHP Mode\"\n  :prefix \"php-mode-\"\n  :group 'languages\n  :group 'php\n  :link '(url-link :tag \"Official Site\" \"https://github.com/emacs-php/php-mode\")\n  :link '(url-link :tag \"PHP Mode Wiki\" \"https://github.com/emacs-php/php-mode/wiki\"))\n\n(define-obsolete-variable-alias 'php-default-face 'php-mode-default-face \"1.20.0\")\n(defcustom php-mode-default-face 'default\n  \"Default face in `php-mode' buffers.\"\n  :tag \"PHP Mode Default Face\"\n  :type 'face)\n\n(define-obsolete-variable-alias 'php-speedbar-config 'php-mode-speedbar-config \"1.20.0\")\n(defcustom php-mode-speedbar-config t\n  \"When set to true automatically configures Speedbar to observe PHP files.\nIgnores php-file patterns option; fixed to expression \\\"\\\\.\\\\(inc\\\\|php[s345]?\\\\)\\\"\"\n  :tag \"PHP Mode Speedbar Config\"\n  :type 'boolean\n  :set (lambda (sym val)\n         (set-default sym val)\n         (when val\n             (speedbar-add-supported-extension\n              \"\\\\.\\\\(inc\\\\|php[s345]?\\\\|phtml\\\\)\"))))\n\n(defcustom php-mode-speedbar-open nil\n  \"Normally `php-mode' starts with the speedbar closed.\nTurning this on will open it whenever `php-mode' is loaded.\"\n  :tag \"PHP Mode Speedbar Open\"\n  :type 'boolean\n  :set (lambda (sym val)\n         (set-default sym val)\n         (when val\n           (speedbar 1))))\n\n(define-obsolete-variable-alias 'php-template-compatibility 'php-mode-template-compatibility \"1.20.0\")\n(defcustom php-mode-template-compatibility t\n  \"Should detect presence of html tags.\"\n  :tag \"PHP Mode Template Compatibility\"\n  :type 'boolean)\n\n(define-obsolete-variable-alias 'php-lineup-cascaded-calls 'php-mode-lineup-cascaded-calls \"1.20.0\")\n(defcustom php-mode-lineup-cascaded-calls nil\n  \"Indent chained method calls to the previous line.\"\n  :tag \"PHP Mode Lineup Cascaded Calls\"\n  :type 'boolean)\n\n(defcustom php-mode-page-delimiter\n  (eval-when-compile\n    (rx symbol-start\n        (or \"namespace\" \"function\" \"class\" \"trait\" \"interface\")\n        symbol-end))\n  \"Regexp describing line-beginnings that PHP declaration statements.\"\n  :tag \"PHP Mode Page Delimiter\"\n  :type 'regexp)\n\n(defcustom php-mode-replace-flymake-diag-function\n  (eval-when-compile (when (boundp 'flymake-diagnostic-functions)\n                       #'php-flymake))\n  \"Flymake function to replace, if NIL do not replace.\"\n  :tag \"PHP Mode Replace Flymake Diag Function\"\n  :type '(choice function\n                 (const :tag \"Disable to replace\" nil)))\n\n(define-obsolete-variable-alias 'php-do-not-use-semantic-imenu 'php-mode-do-not-use-semantic-imenu \"1.20.0\")\n(defcustom php-mode-do-not-use-semantic-imenu t\n  \"Customize `imenu-create-index-function' for `php-mode'.\n\nIf using function `semantic-mode' `imenu-create-index-function' will be\nset to `semantic-create-imenu-index' due to `c-mode' being its\nparent.  Set this variable to t if you want to use\n`imenu-default-create-index-function' even with `semantic-mode'\nenabled.\"\n  :tag \"PHP Mode Do Not Use Semantic Imenu\"\n  :type 'boolean)\n\n;;;###autoload\n(add-to-list 'interpreter-mode-alist\n             ;; Match php, php-3, php5, php7, php5.5, php-7.0.1, etc.\n             (cons \"php\\\\(?:-?[34578]\\\\(?:\\\\.[0-9]+\\\\)*\\\\)?\" 'php-mode))\n\n(defcustom php-mode-hook nil\n  \"List of functions to be executed on entry to `php-mode'.\"\n  :tag \"PHP Mode Hook\"\n  :type 'hook)\n\n(defcustom php-mode-pear-hook nil\n  \"Hook called when a PHP PEAR file is opened with `php-mode'.\"\n  :tag \"PHP Mode Pear Hook\"\n  :type 'hook)\n\n(defcustom php-mode-drupal-hook nil\n  \"Hook called when a Drupal file is opened with `php-mode'.\"\n  :tag \"PHP Mode Drupal Hook\"\n  :type 'hook)\n\n(defcustom php-mode-wordpress-hook nil\n  \"Hook called when a WordPress file is opened with `php-mode'.\"\n  :tag \"PHP Mode WordPress Hook\"\n  :type 'hook)\n\n(defcustom php-mode-symfony2-hook nil\n  \"Hook called when a Symfony2 file is opened with `php-mode'.\"\n  :tag \"PHP Mode Symfony2 Hook\"\n  :type 'hook)\n\n(defcustom php-mode-psr2-hook nil\n  \"Hook called when a PSR-2 file is opened with `php-mode'.\"\n  :tag \"PHP Mode PSR-2 Hook\"\n  :type 'hook)\n\n(defcustom php-mode-force-pear nil\n  \"Normally PEAR coding rules are enforced only when the filename contains \\\"PEAR\\\".\nTurning this on will force PEAR rules on all PHP files.\"\n  :tag \"PHP Mode Force Pear\"\n  :type 'boolean)\n\n(defcustom php-mode-warn-if-mumamo-off t\n  \"Warn once per buffer if you try to indent a buffer without\nmumamo-mode turned on.  Detects if there are any HTML tags in the\nbuffer before warning, but this is is not very smart; e.g. if you\nhave any tags inside a PHP string, it will be fooled.\"\n  :tag \"PHP Mode Warn If MuMaMo Off\"\n  :type '(choice (const :tag \"Warn\" t) (const :tag \"Don't warn\" nil)))\n\n(defcustom php-mode-coding-style 'pear\n  \"Select default coding style to use with `php-mode'.\nThis variable can take one of the following symbol values:\n\n`Default' - use a reasonable default style for PHP.\n`PSR-2' - use PSR standards (PSR-2, PSR-12).\n`PEAR' - use coding styles preferred for PEAR code and modules.\n`Drupal' - use coding styles preferred for working with Drupal projects.\n`WordPress' - use coding styles preferred for working with WordPress projects.\n`Symfony2' - use coding styles preferred for working with Symfony2 projects.\"\n  :tag \"PHP Mode Coding Style\"\n  :type '(choice (const :tag \"Default\" php)\n                 (const :tag \"PEAR\" pear)\n                 (const :tag \"Drupal\" drupal)\n                 (const :tag \"WordPress\" wordpress)\n                 (const :tag \"Symfony2\" symfony2)\n                 (const :tag \"PSR-2\" psr2))\n  :initialize #'custom-initialize-default)\n\n;; Since this function has a bad influence on the environment of many users,\n;; temporarily disable it\n(defcustom php-mode-enable-project-coding-style nil\n  \"When set to true override `php-mode-coding-style' by `php-project-coding-style'.\n\nIf you want to suppress styles from being overwritten by directory / file\nlocal variables, set NIL.\"\n  :tag \"PHP Mode Enable Project Coding Style\"\n  :type 'boolean)\n\n(defcustom php-mode-enable-backup-style-variables t\n  \"When set to `T', back up values set by hook and buffer local variables.\n\nThis function may interfere with other hooks and other behaviors.\nIn that case set to `NIL'.\"\n  :tag \"PHP Mode Enable Backup Style Variables\"\n  :type 'boolean)\n\n(defcustom php-mode-enable-project-local-variable t\n  \"When set to `T', apply project local variable to buffer local variable.\"\n  :tag \"PHP Mode Enable Project Local Variable\"\n  :type 'boolean)\n\n(defconst php-mode-cc-version\n  (eval-when-compile c-version))\n\n(cl-defun php-mode-version (&key as-number)\n  \"Display string describing the version of PHP Mode.\n\nAlthough this is an interactive command, it returns a string when called\nas a function.  Call with AS-NUMBER keyword to compare by `version<'.\n\n\\(version<= \\\"1.24.1\\\" (php-mode-version :as-number t))\"\n  (interactive (list :as-number nil))\n  (if as-number\n      (save-match-data (and (string-match (rx (group (+ (in \".0-9\")))) php-mode-version-id)\n                            (match-string 0 php-mode-version-id)))\n    (funcall\n     (if (called-interactively-p 'interactive) #'message #'format)\n     \"PHP Mode v%s\" php-mode-version-id)))\n\n;;;###autoload\n(define-obsolete-variable-alias 'php-available-project-root-files 'php-project-available-root-files \"1.19.0\")\n\n(defvar php-mode-map\n  (let ((map (make-sparse-keymap \"PHP Mode\")))\n    (set-keymap-parent map c-mode-base-map)\n    ;; Remove menu item for c-mode\n    (define-key map [menu-bar C] nil)\n\n    ;; By default PHP Mode binds C-M-h to c-mark-function, which it\n    ;; inherits from cc-mode.  But there are situations where\n    ;; c-mark-function fails to properly mark a function.  For\n    ;; example, if we use c-mark-function within a method definition\n    ;; then the region will expand beyond the method and into the\n    ;; class definition itself.\n    ;;\n    ;; Changing the default to mark-defun provides behavior that users\n    ;; are more likely to expect.\n    (define-key map (kbd \"C-M-h\") #'mark-defun)\n\n    ;; Many packages based on cc-mode provide the 'C-c C-w' binding\n    ;; to toggle Subword Mode.  See the page\n    ;;\n    ;;     https://www.gnu.org/software/emacs/manual/html_node/ccmode/Subword-Movement.html\n    ;;\n    ;; for more information about Subword mode.\n    (define-key map (kbd \"C-c C-w\") #'subword-mode)\n\n    ;; We inherit c-beginning-of-defun and c-end-of-defun from CC Mode\n    ;; but we have two replacement functions specifically for PHP.  We\n    ;; remap the commands themselves and not their default\n    ;; key-bindings so that our PHP-specific versions will work even\n    ;; if the user has reconfigured their keys, e.g. if they rebind\n    ;; c-end-of-defun to something other than C-M-e.\n    (define-key map [remap c-beginning-of-defun] #'php-beginning-of-defun)\n    (define-key map [remap c-end-of-defun] #'php-end-of-defun)\n    (define-key map [remap c-set-style] #'php-set-style)\n\n    (define-key map [(control c) (control f)] #'php-search-documentation)\n    (define-key map [(meta tab)] #'php-complete-function)\n    (define-key map [(control c) (control m)] #'php-browse-manual)\n    (define-key map [(control .)] #'php-show-arglist)\n    (define-key map [(control c) (control r)] #'php-send-region)\n    ;; Use the Emacs standard indentation binding. This may upset c-mode\n    ;; which does not follow this at the moment, but I see no better\n    ;; choice.\n    (define-key map \"\\t\" nil)          ;Hide CC-mode's `TAB' binding.\n    map)\n  \"Keymap for `php-mode'.\")\n\n(c-lang-defconst c-mode-menu\n  php (append '([\"Complete function name\" php-complete-function t]\n                [\"Browse manual\" php-browse-manual t]\n                [\"Search documentation\" php-search-documentation t]\n                [\"----\" t])\n              (c-lang-const c-mode-menu)))\n\n(c-lang-defconst c-at-vsemi-p-fn\n  php 'php-c-at-vsemi-p)\n\n(c-lang-defconst c-vsemi-status-unknown-p-fn\n  php 'php-c-vsemi-status-unknown-p)\n\n(c-lang-defconst c-get-state-before-change-functions\n  php nil)\n\n(c-lang-defconst c-before-font-lock-functions\n  php (c-get-lang-constant 'c-before-font-lock-functions nil t))\n\n;; Make php-mode recognize opening tags as preprocessor macro's.\n;;\n;; This is a workaround, the tags must be recognized as something\n;; in order for the syntactic guesses of code below the tag\n;; to be correct and as a result not break indentation.\n;;\n;; Note that submatches or \\\\| here are not expected by cc-mode.\n(c-lang-defconst c-opt-cpp-prefix\n  php \"\\\\s-*<\\\\?\")\n\n(c-lang-defconst c-anchored-cpp-prefix\n  php \"\\\\s-*\\\\(<\\\\?(=\\\\|\\\\sw+)\\\\)\")\n\n(c-lang-defconst c-identifier-ops\n  php '((left-assoc \"\\\\\" \"::\" \"->\")\n        (prefix \"\\\\\" \"::\")))\n\n(c-lang-defconst c-operators\n  php `((prefix \"new\" \"clone\")\n        ,@(c-lang-const c-identifier-ops)\n        (postfix \"->\")\n        (postfix \"++\" \"--\" \"[\" \"]\" \"(\" \")\")\n        (right-assoc \"**\")\n        (prefix \"++\" \"--\" \"+\" \"-\" \"~\" \"(\" \")\" \"@\")\n        (prefix \"instanceof\")\n        (prefix \"!\")\n        (left-assoc \"*\" \"/\" \"%\")\n        (left-assoc \"+\" \"-\" \".\")\n        (left-assoc \"<<\" \">>\")\n        (left-assoc \"<\" \">\" \"<=\" \">=\")\n        (left-assoc \"==\" \"!=\" \"===\" \"!==\" \"<>\" \"<=>\")\n        (left-assoc \"&\")\n        (left-assoc \"^\")\n        (left-assoc \"|\")\n        (left-assoc \"&&\")\n        (left-assoc \"||\")\n        (right-assoc \"??\")\n        (left-assoc \"?:\")\n        (right-assoc-sequence \"?\" \":\")\n        (right-assoc ,@(c-lang-const c-assignment-operators))\n        (left-assoc \"and\")\n        (left-assoc \"xor\")\n        (left-assoc \"or\")\n        (left-assoc \",\")\n        (left-assoc \"=>\")))\n\n;; Allow '\\' when scanning from open brace back to defining\n;; construct like class\n(c-lang-defconst c-block-prefix-disallowed-chars\n  php (cl-set-difference (c-lang-const c-block-prefix-disallowed-chars)\n                      '(?\\\\)))\n\n;; Allow $ so variables are recognized in cc-mode and remove @. This\n;; makes cc-mode highlight variables and their type hints in arglists.\n(c-lang-defconst c-symbol-start\n  php (concat \"[\" c-alpha \"_$]\"))\n\n;; All string literals can possibly span multiple lines\n(c-lang-defconst c-multiline-string-start-char\n  php t)\n\n(c-lang-defconst c-assignment-operators\n  php '(\"=\" \"*=\" \"/=\" \"%=\" \"+=\" \"-=\" \">>=\" \"<<=\" \"&=\" \"^=\" \"|=\" \".=\" \"??=\"))\n\n(c-lang-defconst beginning-of-defun-function\n  php 'php-beginning-of-defun)\n\n(c-lang-defconst end-of-defun-function\n  php 'php-end-of-defun)\n\n(c-lang-defconst c-primitive-type-kwds\n  php '(\"int\" \"integer\" \"bool\" \"boolean\" \"float\" \"double\" \"real\"\n        \"string\" \"object\" \"void\" \"mixed\" \"never\"))\n\n(c-lang-defconst c-class-decl-kwds\n  \"Keywords introducing declarations where the following block (if any)\ncontains another declaration level that should be considered a class.\"\n  php '(\"class\" \"trait\" \"interface\" \"enum\"))\n\n(c-lang-defconst c-brace-list-decl-kwds\n  \"Keywords introducing declarations where the following block (if\nany) is a brace list.\n\nPHP does not have an C-like \\\"enum\\\" keyword.\"\n  php nil)\n\n(c-lang-defconst c-typeless-decl-kwds\n  php (append (c-lang-const c-class-decl-kwds php) '(\"function\" \"const\")))\n\n(c-lang-defconst c-modifier-kwds\n  php '(\"abstract\" \"final\" \"static\" \"case\" \"readonly\"))\n\n(c-lang-defconst c-protection-kwds\n  \"Access protection label keywords in classes.\"\n  php '(\"private\" \"protected\" \"public\"))\n\n(c-lang-defconst c-postfix-decl-spec-kwds\n  php '(\"implements\" \"extends\"))\n\n(c-lang-defconst c-type-list-kwds\n  php '(\"@new\" ;; @new is *NOT* language construct, it's workaround for coloring.\n        \"new\" \"use\" \"implements\" \"extends\" \"namespace\" \"instanceof\" \"insteadof\"))\n\n(c-lang-defconst c-ref-list-kwds\n  php nil)\n\n(c-lang-defconst c-block-stmt-2-kwds\n  php '(\"catch\" \"declare\" \"elseif\" \"for\" \"foreach\" \"if\" \"switch\" \"while\"))\n\n(c-lang-defconst c-simple-stmt-kwds\n  php '(\"break\" \"continue\" \"die\" \"echo\" \"exit\" \"goto\" \"return\" \"throw\"\n        \"include\" \"include_once\" \"print\" \"require\" \"require_once\"))\n\n(c-lang-defconst c-constant-kwds\n  php '(\"true\" \"false\" \"null\"))\n\n(c-lang-defconst c-lambda-kwds\n  php '(\"function\" \"use\"))\n\n(c-lang-defconst c-inexpr-block-kwds\n  php '(\"match\"))\n\n(c-lang-defconst c-other-block-decl-kwds\n  php '(\"namespace\"))\n\n(c-lang-defconst c-other-kwds\n  \"Keywords not accounted for by any other `*-kwds' language constant.\"\n  php\n  '(\"__halt_compiler\"\n    \"and\"\n    \"array\"\n    \"as\"\n    \"break\"\n    \"catch\"\n    \"clone\"\n    \"default\"\n    \"empty\"\n    \"enddeclare\"\n    \"endfor\"\n    \"endforeach\"\n    \"endif\"\n    \"endswitch\"\n    \"endwhile\"\n    \"eval\"\n    \"fn\" ;; NOT c-lambda-kwds\n    \"global\"\n    \"isset\"\n    \"list\"\n    \"or\"\n    \"parent\"\n    \"static\"\n    \"unset\"\n    \"var\"\n    \"xor\"\n    \"yield\"\n    \"yield from\"\n\n    ;; Below keywords are technically not reserved keywords, but\n    ;; threated no differently by php-mode from actual reserved\n    ;; keywords\n    ;;\n    ;;; declare directives:\n    \"encoding\"\n    \"ticks\"\n    \"strict_types\"\n\n    ;;; self for static references:\n    \"self\"))\n\n;; PHP does not have <> templates/generics\n(c-lang-defconst c-recognize-<>-arglists\n  php nil)\n\n(c-lang-defconst c-<>-type-kwds\n  php nil)\n\n(c-lang-defconst c-inside-<>-type-kwds\n  php nil)\n\n(c-lang-defconst c-enums-contain-decls\n  php nil)\n\n(c-lang-defconst c-nonlabel-token-key\n  \"Regexp matching things that can't occur in generic colon labels.\n\nThis overrides cc-mode `c-nonlabel-token-key' to support switching on\ndouble quoted strings and true/false/null.\n\nNote: this regexp is also applied to goto-labels, a future improvement\nmight be to handle switch and goto labels differently.\"\n  php (concat\n     ;; All keywords except `c-label-kwds' and `c-constant-kwds'.\n     (c-make-keywords-re t\n       (cl-set-difference (c-lang-const c-keywords)\n                       (append (c-lang-const c-label-kwds)\n                               (c-lang-const c-constant-kwds))\n                       :test 'string-equal))))\n\n(c-lang-defconst c-basic-matchers-before\n  php (cl-remove-if (lambda (elm) (and (listp elm) (equal (car elm) \"\\\\s|\")))\n                    (c-lang-const c-basic-matchers-before php)))\n\n(c-lang-defconst c-basic-matchers-after\n  php (cl-remove-if (lambda (elm) (and (listp elm) (memq 'c-annotation-face elm)))\n                    (c-lang-const c-basic-matchers-after php)))\n\n(defconst php-mode--re-return-typed-closure\n  (eval-when-compile\n    (rx symbol-start \"function\" symbol-end\n               (* (syntax whitespace))\n               \"(\" (* (not (any \"(\"))) \")\"\n               (* (syntax whitespace))\n               (? symbol-start \"use\" symbol-end\n                  (* (syntax whitespace))\n                  \"(\" (* (not (any \"(\"))) \")\"\n                  (* (syntax whitespace)))\n               \":\" (+ (not (any \"{}\")))\n               (group \"{\"))))\n\n(defun php-c-lineup-arglist (langelem)\n  \"Line up the current argument line under the first argument using\n`c-lineup-arglist' LANGELEM.\"\n  (let (in-return-typed-closure)\n    (when (and (consp langelem)\n               (eq 'arglist-cont-nonempty (car langelem)))\n      (save-excursion\n        (save-match-data\n          (when (re-search-backward php-mode--re-return-typed-closure (cdr langelem) t)\n            (goto-char (match-beginning 1))\n            (when (not (php-in-string-or-comment-p))\n              (setq in-return-typed-closure t))))))\n    (unless in-return-typed-closure\n      (c-lineup-arglist langelem))))\n\n(defun php-lineup-cascaded-calls (langelem)\n  \"Line up chained methods using `c-lineup-cascaded-calls',\nbut only if the setting is enabled.\"\n  (cond\n   (php-mode-lineup-cascaded-calls (c-lineup-cascaded-calls langelem))\n   ((assq 'arglist-cont-nonempty c-syntactic-context) nil)\n   ((assq 'defun-block-intro c-syntactic-context) nil)\n   ((assq 'defun-close c-syntactic-context) nil)\n   ((assq 'statement-cont c-syntactic-context) nil)\n   ((save-excursion\n      (beginning-of-line)\n      (let ((beginning-of-langelem (cdr langelem))\n            (beginning-of-current-line (point))\n            start)\n        (skip-chars-forward \" \t\")\n        (cond\n         ((looking-at-p \"->\") '+)\n         ((looking-at-p \"[:?]\") '+)\n         ((looking-at-p \"[,;]\") nil)\n         ((looking-at-p \"//\") nil)\n         ;; Is the previous line terminated with `,' ?\n         ((progn\n            (forward-line -1)\n            (end-of-line)\n            (skip-chars-backward \" \t\")\n            (backward-char 1)\n            (while (and (< beginning-of-langelem (point))\n                        (setq start (php-in-string-or-comment-p)))\n              (goto-char start)\n              (skip-chars-backward \" \t\\r\\n\")\n              (backward-char 1))\n            (and (not (eq (point) beginning-of-current-line))\n                 (not (php-in-string-or-comment-p))\n                 (not (looking-at-p \",\"))\n                 (save-excursion\n                   (backward-char) (not (looking-at-p \",\")))))\n          '+)\n         (t nil)))))))\n\n(defun php-c-looking-at-or-maybe-in-bracelist (orig-fun &optional containing-sexp lim &rest args)\n  \"Replace `c-looking-at-or-maybe-in-bracelist'.\n\nCONTAINING-SEXP is the position of the brace/paren/bracket enclosing\nPOINT, or nil if there is no such position, or we do not know it.  LIM is\na backward search limit.\"\n  (cond\n   ((not (derived-mode-p 'php-mode)) (apply orig-fun containing-sexp lim args))\n   ((looking-at-p \"{\")\n    (save-excursion\n      (c-backward-token-2 2 t lim)\n      ;; PHP 8.0 match expression\n      ;; echo match ($var) |{\n      ;;     ↑ matches   ↑ initial position\n      (when (looking-at-p (eval-when-compile (rx symbol-start \"match\" symbol-end)))\n        (cons (point) t))))\n   (t nil)))\n\n(c-add-style\n \"php\"\n `((c-basic-offset . 4)\n   (c-offsets-alist . ((arglist-close . php-lineup-arglist-close)\n                       (arglist-cont . (first php-lineup-cascaded-calls 0))\n                       (arglist-cont-nonempty . (first php-lineup-cascaded-calls php-c-lineup-arglist))\n                       (arglist-intro . php-lineup-arglist-intro)\n                       (case-label . +)\n                       (class-open . 0)\n                       (comment-intro . 0)\n                       (inexpr-class . 0)\n                       (inlambda . 0)\n                       (inline-open . 0)\n                       (namespace-open . 0)\n                       (lambda-intro-cont . +)\n                       (label . +)\n                       (statement-cont . (first php-lineup-cascaded-calls php-lineup-string-cont +))\n                       (substatement-open . 0)\n                       (topmost-intro-cont . (first php-lineup-cascaded-calls +))))\n   (indent-tabs-mode . nil)\n   (tab-width . ,(default-value 'tab-width))\n   (fill-column . ,(default-value 'fill-column))\n   (show-trailing-whitespace . ,(default-value 'show-trailing-whitespace))\n   (php-mode-lineup-cascaded-calls . t)\n   (php-style-delete-trailing-whitespace . nil)))\n\n(defun php-enable-default-coding-style ()\n  \"Set PHP Mode to use reasonable default formatting.\"\n  (interactive)\n  (php-set-style \"php\"))\n\n(c-add-style\n \"pear\"\n '(\"php\"\n   (c-basic-offset . 4)\n   (c-offsets-alist . ((case-label . 0) (statement-cont . +)))\n   (tab-width . 4)\n   (php-mode-lineup-cascaded-calls . nil)))\n\n(defun php-enable-pear-coding-style ()\n  \"Set up `php-mode' to use the coding styles preferred for PEAR code and modules.\"\n  (interactive)\n  (php-set-style \"pear\"))\n\n(c-add-style\n \"drupal\"\n '(\"php\"\n   (c-basic-offset . 2)\n   (tab-width . 2)\n   (fill-column . 78)\n   (show-trailing-whitespace . t)\n   (php-mode-lineup-cascaded-calls . nil)\n   (php-style-delete-trailing-whitespace . t)))\n\n(defun php-enable-drupal-coding-style ()\n  \"Make `php-mode' use coding styles that are preferable for working with Drupal.\"\n  (interactive)\n  (php-set-style \"drupal\"))\n\n(c-add-style\n  \"wordpress\"\n  '(\"php\"\n    (c-basic-offset . 4)\n    (c-indent-comments-syntactically-p t)\n    (indent-tabs-mode . t)\n    (tab-width . 4)\n    (fill-column . 78)))\n\n(defun php-enable-wordpress-coding-style ()\n  \"Make `php-mode' use coding styles that are preferable for working with\nWordpress.\"\n  (interactive)\n  (php-set-style \"wordpress\"))\n\n(c-add-style\n  \"symfony2\"\n  '(\"php\"\n    (c-offsets-alist . ((statement-cont . php-lineup-hanging-semicolon)))\n    (c-indent-comments-syntactically-p . t)\n    (php-mode-lineup-cascaded-calls . nil)\n    (fill-column . 78)))\n\n(defun php-enable-symfony2-coding-style ()\n  \"Make `php-mode' use coding styles that are preferable for working with Symfony2.\"\n  (interactive)\n  (php-set-style \"symfony2\"))\n\n(c-add-style\n \"psr2\" ; PSR-2 / PSR-12\n  '(\"php\"\n    (c-offsets-alist . ((statement-cont . +)))\n    (c-indent-comments-syntactically-p . t)\n    (fill-column . 78)\n    (show-trailing-whitespace . t)\n    (php-mode-lineup-cascaded-calls . nil)\n    (php-style-delete-trailing-whitespace . t)))\n\n(defun php-enable-psr2-coding-style ()\n  \"Make `php-mode' comply to the PSR-2 coding style.\"\n  (interactive)\n  (php-set-style \"psr2\"))\n\n(defun php-beginning-of-defun (&optional arg)\n  \"Move to the beginning of the ARGth PHP function from point.\nImplements PHP version of `beginning-of-defun-function'.\"\n  (interactive \"p\")\n  (let (found-p (arg (or arg 1)))\n    (while (> arg 0)\n      (setq found-p (re-search-backward php-beginning-of-defun-regexp\n                                        nil 'noerror))\n      (setq arg (1- arg)))\n    (while (< arg 0)\n      (end-of-line 1)\n      (let ((opoint (point)))\n        (beginning-of-defun 1)\n        (forward-list 2)\n        (forward-line 1)\n        (if (eq opoint (point))\n            (setq found-p (re-search-forward php-beginning-of-defun-regexp\n                                             nil 'noerror)))\n        (setq arg (1+ arg))))\n    (not (null found-p))))\n\n(defun php-end-of-defun (&optional arg)\n  \"Move the end of the ARGth PHP function from point.\nImplements PHP version of `end-of-defun-function'\n\nSee `php-beginning-of-defun'.\"\n  (interactive \"p\")\n  (php-beginning-of-defun (- (or arg 1))))\n\n\f\n(defvar php-warned-bad-indent nil)\n\n;; Do it but tell it is not good if html tags in buffer.\n(defun php-check-html-for-indentation ()\n  (let ((html-tag-re \"^\\\\s-*</?\\\\sw+.*?>\")\n        (here (point)))\n    (goto-char (line-beginning-position))\n    (if (or (when (boundp 'mumamo-multi-major-mode) mumamo-multi-major-mode)\n            ;; Fix-me: no idea how to check for mmm or multi-mode\n            (save-match-data\n              (not (or (re-search-forward html-tag-re (line-end-position) t)\n                       (re-search-backward html-tag-re (line-beginning-position) t)))))\n        (prog1 t\n          (goto-char here))\n      (goto-char here)\n      (setq php-warned-bad-indent t)\n      (let* ((known-multi-libs '((\"mumamo\" mumamo (lambda () (nxhtml-mumamo)))\n                                 (\"mmm-mode\" mmm-mode (lambda () (mmm-mode 1)))\n                                 (\"multi-mode\" multi-mode (lambda () (multi-mode 1)))\n                                 (\"web-mode\" web-mode (lambda () (web-mode)))))\n             (known-names (mapcar (lambda (lib) (car lib)) known-multi-libs))\n             (available-multi-libs (delq nil\n                                         (mapcar\n                                          (lambda (lib)\n                                            (when (locate-library (car lib)) lib))\n                                          known-multi-libs)))\n             (available-names (mapcar (lambda (lib) (car lib)) available-multi-libs))\n             (base-msg\n              (concat\n               \"Indentation fails badly with mixed HTML/PHP in the HTML part in\nplain `php-mode'.  To get indentation to work you must use an\nEmacs library that supports 'multiple major modes' in a buffer.\nParts of the buffer will then be in `php-mode' and parts in for\nexample `html-mode'.  Known such libraries are:\\n\\t\"\n               (mapconcat #'identity known-names \", \")\n               \"\\n\"\n               (if available-multi-libs\n                   (concat\n                    \"You have these available in your `load-path':\\n\\t\"\n                    (mapconcat #'identity available-names \", \")\n                    \"\\n\\n\"\n                    \"Do you want to turn any of those on? \")\n                 \"You do not have any of those in your `load-path'.\")))\n             (is-using-multi\n              (catch 'is-using\n                (dolist (lib available-multi-libs)\n                  (when (and (boundp (cadr lib))\n                             (symbol-value (cadr lib)))\n                    (throw 'is-using t))))))\n        (unless is-using-multi\n          (if available-multi-libs\n              (if (not (y-or-n-p base-msg))\n                  (message \"Did not do indentation, but you can try again now if you want\")\n                (let* ((name\n                        (if (= 1 (length available-multi-libs))\n                            (car available-names)\n                          ;; Minibuffer window is more than one line, fix that first:\n                          (message \"\")\n                          (completing-read \"Choose multiple major mode support library: \"\n                                           available-names nil t\n                                           (car available-names)\n                                           '(available-names . 1)\n                                           )))\n                       (mode (when name\n                               (cl-caddr (assoc name available-multi-libs)))))\n                  (when mode\n                    ;; Minibuffer window is more than one line, fix that first:\n                    (message \"\")\n                    (load name)\n                    (funcall mode))))\n            (lwarn 'php-indent :warning base-msg)))\n        nil))))\n\n(defun php-cautious-indent-region (start end &optional quiet)\n  \"Carefully indent region START to END in contexts other than HTML templates.\n\nIf the optional argument QUIET is non-nil then no syntactic errors are\nreported, even if `c-report-syntactic-errors' is non-nil.\"\n  (if (or (not php-mode-warn-if-mumamo-off)\n          (not (php-in-poly-php-html-mode))\n          php-warned-bad-indent\n          (php-check-html-for-indentation))\n      (funcall 'c-indent-region start end quiet)))\n\n(defun php-cautious-indent-line ()\n  \"Carefully indent lines in contexts other than HTML templates.\"\n  (if (or (not php-mode-warn-if-mumamo-off)\n          (not (php-in-poly-php-html-mode))\n          php-warned-bad-indent\n          (php-check-html-for-indentation))\n      (let ((here (point))\n            doit)\n        (move-beginning-of-line nil)\n        ;; Don't indent heredoc end mark\n        (save-match-data\n          (unless (and (looking-at \"[a-zA-Z0-9_]+;\\n\")\n                       (php-in-string-p))\n            (setq doit t)))\n        (goto-char here)\n        (when doit\n          (funcall 'c-indent-line)))))\n\n(defun php-c-at-vsemi-p (&optional pos)\n  \"Return T on HTML lines (including php tag) or PHP8 Attribute, otherwise NIL.\nPOS is a position on the line in question.\n\nThis is was done due to the problem reported here:\n\n  URL `https://answers.launchpad.net/nxhtml/+question/43320'\"\n  ;; If this function could call c-beginning-of-statement-1, change php-c-vsemi-status-unknown-p.\n  (save-excursion\n    (if pos\n        (goto-char pos)\n      (setq pos (point)))\n    (cond\n     ;; Detect PHP8 attribute: #[Attribute()]\n     ((and (< 1 pos) (< 1 (- pos (c-point 'bol))))\n      (backward-char 1)\n      (looking-at-p (eval-when-compile (rx \"]\" (* (syntax whitespace)) (or \"#[\" line-end)))))\n     ;; Detect HTML/XML tag and PHP tag (<?php, <?=, ?>)\n     (php-mode-template-compatibility\n      (beginning-of-line)\n      (looking-at-p\n       (eval-when-compile\n         (rx (or (: bol (0+ space) \"<\" (in \"?a-z\"))\n                 (: (0+ not-newline) (in \"?a-z\") \">\" (0+ space) eol)))))))))\n\n(defun php-c-vsemi-status-unknown-p ()\n  \"Always return NIL.  See `c-vsemi-status-unknown-p'.\"\n  ;; Current implementation of php-c-at-vsemi-p never calls c-beginning-of-statement-1\n  nil)\n\n(defun php-lineup-string-cont (langelem)\n  \"Line up string toward equal sign or dot.\ne.g.\n$str = \\\\='some'\n     . \\\\='string';\nthis ^ lineup\"\n  (save-excursion\n    (goto-char (cdr langelem))\n    (let (ret finish)\n      (while (and (not finish) (re-search-forward \"[=.]\" (line-end-position) t))\n        (unless (php-in-string-or-comment-p)\n          (setq finish t\n                ret (vector (1- (current-column))))))\n      ret)))\n\n(defun php-lineup-arglist-intro (langelem)\n  (save-excursion\n    (goto-char (cdr langelem))\n    (vector (+ (current-column) c-basic-offset))))\n\n(defun php-lineup-arglist-close (langelem)\n  (save-excursion\n    (goto-char (cdr langelem))\n    (vector (current-column))))\n\n(defun php-lineup-arglist (_langelem)\n  (save-excursion\n    (beginning-of-line)\n    (if (looking-at-p \"\\\\s-*->\") '+ 0)))\n\n(defun php-lineup-hanging-semicolon (_langelem)\n  (save-excursion\n    (beginning-of-line)\n    (if (looking-at-p \"\\\\s-*;\\\\s-*$\") 0 '+)))\n\n(eval-and-compile\n  (defconst php-heredoc-start-re\n    (rx \"<<<\"\n        (* (syntax whitespace))\n        (or (group (+ (or (syntax word) (syntax symbol))))\n            (: \"\\\"\" (group (+ (or (syntax word) (syntax symbol)))) \"\\\"\")\n            (: \"'\" (group (+ (or (syntax word) (syntax symbol)))) \"'\"))\n        line-end)\n    \"Regular expression for the start of a PHP heredoc.\"))\n\n(defun php-heredoc-end-re (heredoc-start)\n  \"Build a regular expression for the end of a heredoc started by the string\nHEREDOC-START.\"\n  ;; Extract just the identifier without <<< and quotes.\n  (string-match \"\\\\_<.+?\\\\_>\" heredoc-start)\n  (concat \"^\\\\s-*\\\\(\" (match-string 0 heredoc-start) \"\\\\)\\\\W\"))\n\n(eval-and-compile\n  (defconst php-syntax-propertize-rules\n    (syntax-propertize-precompile-rules\n     (php-heredoc-start-re\n      (0 (ignore (php--syntax-propertize-heredoc\n                  (match-beginning 0)\n                  (or (match-string 1) (match-string 2) (match-string 3))\n                  (null (match-string 3))))))\n     ((rx \"#[\")\n      (0 (ignore (php--syntax-propertize-attributes (match-beginning 0)))))\n     ((rx (or \"'\" \"\\\"\"))\n      (0 (ignore (php--syntax-propertize-quotes-in-comment (match-beginning 0))))))))\n\n(defalias 'php-syntax-propertize-function\n  (syntax-propertize-rules php-syntax-propertize-rules))\n\n(defun php--syntax-propertize-heredoc (start id _is-heredoc)\n  \"Apply propertize Heredoc and Nowdoc from START, with ID and IS-HEREDOC.\"\n  (let ((terminator (rx-to-string `(: line-start (* (syntax whitespace)) ,id word-boundary))))\n    (put-text-property start (1+ start) 'syntax-table (string-to-syntax \"|\"))\n    (re-search-forward terminator nil t)\n    (when (match-string 0)\n      (put-text-property (1- (point)) (point) 'syntax-table (string-to-syntax \"|\")))))\n\n(defun php--syntax-propertize-quotes-in-comment (pos)\n  \"Apply propertize quotes (' and \\\") from POS.\"\n  (when (php-in-comment-p)\n    (put-text-property pos (1+ pos) 'syntax-table (string-to-syntax \"_\"))))\n\n(defun php--syntax-propertize-attributes (start)\n  \"Apply propertize PHP8 #[Attributes] (without # comment) from START.\"\n  (unless (php-in-string-p)\n    (put-text-property start (1+ start) 'syntax-table (string-to-syntax \".\"))))\n\n(defvar-local php-mode--propertize-extend-region-current nil\n  \"Prevent undesirable recursion in PHP-SYNTAX-PROPERTIZE-EXTEND-REGION.\")\n\n(defun php-syntax-propertize-extend-region (start end)\n  \"Extend the propertize region if START or END falls inside a PHP heredoc.\"\n  (let ((pair (cons start end)))\n    (when (not (member pair php-mode--propertize-extend-region-current))\n      ;; re-search functions may trigger\n      ;; syntax-propertize-extend-region-functions to be called again, which in\n      ;; turn call this to be called again.\n      (push pair php-mode--propertize-extend-region-current)\n      (unwind-protect\n          (let (new-start new-end)\n            (goto-char start)\n            ;; Consider bounding this backwards search by `beginning-of-defun'.\n            ;; (Benchmarking for a wide range of cases may be needed to decide\n            ;; whether that's an improvement, as `php-beginning-of-defun' also\n            ;; uses `re-search-backward'.)\n            (when (re-search-backward php-heredoc-start-re nil t)\n              (let ((maybe (point)))\n                (when (and (re-search-forward (php-heredoc-end-re (match-string 0)) nil t)\n                           (> (point) start))\n                  (setq new-start maybe)\n                  (when (> (point) end)\n                    (setq new-end (point))))))\n            (unless new-end\n              (goto-char end)\n              (when (re-search-backward php-heredoc-start-re start t)\n                (if (re-search-forward (php-heredoc-end-re (match-string 0)) nil t)\n                    (when (> (point) end)\n                      (setq new-end (point)))\n                  (setq new-end (point-max)))))\n            (when (or new-start new-end)\n              (cons (or new-start start) (or new-end end))))\n        ;; Cleanup\n        (setq php-mode--propertize-extend-region-current\n              (delete pair php-mode--propertize-extend-region-current))))))\n\n(easy-menu-define php-mode-menu php-mode-map \"PHP Mode Commands.\"\n  (cons \"PHP\" (c-lang-const c-mode-menu php)))\n\n(defun php-mode-get-style-alist ()\n  \"Return an alist consisting of `php' style and styles that inherit it.\"\n  (cl-loop for l in c-style-alist\n           if (or (string= (car l) \"php\")\n                  (equal (cadr l) \"php\"))\n           collect l))\n\n(defvar php-mode-set-style-history nil)\n(defvar-local php-mode--delayed-set-style nil)\n(defvar-local php-style-delete-trailing-whitespace nil)\n\n(defun php-set-style (stylename &optional dont-override)\n  \"Set the current `php-mode' buffer to use the style STYLENAME.\nSTYLENAME is one of the names selectable in `php-mode-coding-style'.\n\nBorrow the `interactive-form' from `c-set-style' and use the original\n`c-set-style' function to set all declared stylevars.\nFor compatibility with `c-set-style' pass DONT-OVERRIDE to it.\n\nAfter setting the stylevars run hook `php-mode-STYLENAME-hook'.\"\n  (interactive\n   (list (let ((completion-ignore-case t)\n\t       (prompt (format \"Which %s indentation style? \"\n\t\t\t       mode-name)))\n\t   (completing-read prompt\n                            (php-mode-get-style-alist)\n                            nil t nil\n\t\t\t    'php-mode-set-style-history\n\t\t\t    c-indentation-style))))\n  (php-mode--disable-delay-set-style)\n\n  ;; Back up manually set variables\n  (let* (value\n         (backup-vars\n          (and php-mode-enable-backup-style-variables\n               (cl-loop for name in c-style-variables\n                        do (setq value (symbol-value name))\n                        if (and value (not (eq 'set-from-style value)))\n                        collect (cons name value)))))\n    (c-set-style stylename dont-override)\n    ;; Restore variables\n    (cl-loop for (name . value) in backup-vars\n             do (set (make-local-variable name) value)))\n  (if (eq php-style-delete-trailing-whitespace t)\n      (add-hook 'before-save-hook #'delete-trailing-whitespace nil t)\n    (remove-hook 'before-save-hook #'delete-trailing-whitespace t))\n  (run-hooks (intern (format \"php-mode-%s-hook\" stylename))))\n\n(defun php-mode--disable-delay-set-style (&rest _args)\n  \"Disable `php-mode-set-style-delay' on after hook.  ARGS be ignore.\"\n  (setq php-mode--delayed-set-style nil)\n  (advice-remove #'php-mode--disable-delay-set-style #'c-set-style))\n\n(defun php-mode-set-style-delay ()\n  \"Set the current `php-mode' buffer to use the style by custom or local variables.\"\n  (when php-mode--delayed-set-style\n    (let ((coding-style (or (and (boundp 'php-project-coding-style) php-project-coding-style)\n                            php-mode-coding-style)))\n      (prog1 (when coding-style\n               (php-set-style (symbol-name coding-style)))\n        (remove-hook 'hack-local-variables-hook #'php-mode-set-style-delay)))))\n\n(defun php-mode-set-local-variable-delay ()\n  \"Set local variable from php-project.\"\n  (php-project-apply-local-variables)\n  (remove-hook 'hack-local-variables-hook #'php-mode-set-local-variable-delay))\n\n(defvar php-mode-syntax-table\n  (let ((table (make-syntax-table)))\n    (c-populate-syntax-table table)\n    (modify-syntax-entry ?_  \"_\"   table)\n    (modify-syntax-entry ?`  \"\\\"\"  table)\n    (modify-syntax-entry ?\\\" \"\\\"\"  table)\n    (modify-syntax-entry ?#  \"< b\" table)\n    (modify-syntax-entry ?\\n \"> b\" table)\n    (modify-syntax-entry ?$  \"_\"   table)\n    table))\n\n;;;###autoload\n(define-derived-mode php-mode php-base-mode \"PHP\"\n  \"Major mode for editing PHP code.\n\n\\\\{php-mode-map}\"\n  :syntax-table php-mode-syntax-table\n  :after-hook (progn (c-make-noise-macro-regexps)\n                     (c-make-macro-with-semi-re)\n                     (c-update-modeline))\n  (unless (string= php-mode-cc-version c-version)\n    (php-mode-debug-reinstall nil))\n\n  (c-initialize-cc-mode t)\n  (setq abbrev-mode t)\n\n  ;; Must be called once as c-mode to enable font-lock for Heredoc.\n  ;; TODO: This call may be removed in the future.\n  (c-common-init 'c-mode)\n\n  (c-init-language-vars php-mode)\n  (c-common-init 'php-mode)\n  (cc-imenu-init cc-imenu-c-generic-expression)\n\n  (setq-local c-auto-align-backslashes nil)\n\n  (setq-local comment-start \"// \")\n  (setq-local comment-start-skip\n              (eval-when-compile\n                (rx (group (or (: \"#\" (not (any \"[\")))\n                               (: \"/\" (+ \"/\"))\n                               (: \"/*\")))\n                    (* (syntax whitespace)))))\n  (setq-local comment-end \"\")\n  (setq-local page-delimiter php-mode-page-delimiter)\n\n  (setq-local font-lock-string-face 'php-string)\n  (setq-local font-lock-keyword-face 'php-keyword)\n  (setq-local font-lock-builtin-face 'php-builtin)\n  (setq-local c-preprocessor-face-name 'php-php-tag)\n  (setq-local font-lock-function-name-face 'php-function-name)\n  (setq-local font-lock-variable-name-face 'php-variable-name)\n  (setq-local font-lock-constant-face 'php-constant)\n\n  (setq-local syntax-propertize-function #'php-syntax-propertize-function)\n  (add-hook 'syntax-propertize-extend-region-functions\n            #'php-syntax-propertize-extend-region t t)\n\n  (setq imenu-generic-expression (if (symbolp php-imenu-generic-expression)\n                                     (symbol-value php-imenu-generic-expression)\n                                   php-imenu-generic-expression))\n\n  ;; PHP vars are case-sensitive\n  (setq case-fold-search t)\n\n  (when php-mode-enable-project-local-variable\n    (add-hook 'hack-local-variables-hook #'php-mode-set-local-variable-delay t t))\n\n  ;; When php-mode-enable-project-coding-style is set, it is delayed by hook.\n  ;; Since it depends on the timing at which the file local variable is set.\n  ;; File local variables are set after initialization of major mode except `run-hook' is complete.\n  (if php-mode-enable-project-coding-style\n      (progn\n        (add-hook 'hack-local-variables-hook #'php-mode-set-style-delay t t)\n        (setq php-mode--delayed-set-style t)\n        (advice-add 'c-set-style :after #'php-mode--disable-delay-set-style))\n    (let ((php-mode-enable-backup-style-variables nil))\n      (php-set-style (symbol-name php-mode-coding-style))))\n\n  (when (or php-mode-force-pear\n            (and (stringp buffer-file-name)\n                 (string-match \"PEAR\\\\|pear\" buffer-file-name)\n                 (string-match \"\\\\.php\\\\'\" buffer-file-name)))\n      (php-set-style \"pear\"))\n\n  (setq indent-line-function #'php-cautious-indent-line)\n  (setq indent-region-function #'php-cautious-indent-region)\n  (setq c-at-vsemi-p-fn #'php-c-at-vsemi-p)\n  (setq c-vsemi-status-unknown-p-fn #'php-c-vsemi-status-unknown-p)\n\n  ;; We map the php-{beginning,end}-of-defun functions so that they\n  ;; replace the similar commands that we inherit from CC Mode.\n  ;; Because of our remapping we may not actually need to keep the\n  ;; following two local variables, but we keep them for now until we\n  ;; are completely sure their removal will not break any current\n  ;; behavior or backwards compatibility.\n  (setq-local beginning-of-defun-function #'php-beginning-of-defun)\n  (setq-local end-of-defun-function #'php-end-of-defun)\n\n  (setq-local open-paren-in-column-0-is-defun-start nil)\n  (setq-local defun-prompt-regexp\n              \"^\\\\s-*function\\\\s-+&?\\\\s-*\\\\(\\\\(\\\\sw\\\\|\\\\s_\\\\)+\\\\)\\\\s-*\")\n  (setq-local add-log-current-defun-function nil)\n  (setq-local add-log-current-defun-header-regexp php-beginning-of-defun-regexp)\n\n  (when (and (eval-when-compile (boundp 'flymake-diagnostic-functions))\n             php-mode-replace-flymake-diag-function)\n    (add-hook 'flymake-diagnostic-functions php-mode-replace-flymake-diag-function nil t))\n\n  (advice-add 'c-looking-at-or-maybe-in-bracelist\n              :around 'php-c-looking-at-or-maybe-in-bracelist)\n  (advice-add 'fixup-whitespace :after #'php-mode--fixup-whitespace-after)\n\n  (advice-add 'acm-backend-tabnine-candidate-expand\n              :filter-args #'php-acm-backend-tabnine-candidate-expand-filter-args)\n\n  (when (eval-when-compile (>= emacs-major-version 25))\n    (syntax-ppss-flush-cache (point-min))))\n\n(declare-function semantic-create-imenu-index \"semantic/imenu\" (&optional stream))\n\n(defvar-mode-local php-mode imenu-create-index-function\n  (if php-do-not-use-semantic-imenu\n      #'imenu-default-create-index-function\n    (require 'semantic/imenu)\n    #'semantic-create-imenu-index)\n  \"Imenu index function for PHP.\")\n\n(when (bound-and-true-p consult-imenu-config)\n  (add-to-list 'consult-imenu-config '(php-mode :toplevel \"Namespace\"\n                                                :types ((?n \"Namespace\" font-lock-function-name-face)\n                                                        (?p \"Properties\" font-lock-type-face)\n                                                        (?o \"Constants\" font-lock-type-face)\n                                                        (?c \"Classes\"    font-lock-type-face)\n                                                        (?f \"Functions\" font-lock-function-name-face)\n                                                        (?i \"Imports\" font-lock-type-face)\n                                                        (?m \"Methods\"  font-lock-function-name-face)))))\n\n(autoload 'php-local-manual-complete-function \"php-local-manual\")\n\n(defun php-complete-function ()\n  \"Perform function completion on the text around point.\nCompletes to the set of names listed in the current tags table\nand the standard php functions.\nThe string to complete is chosen in the same way as the default\nfor \\\\[find-tag] (which see).\"\n  (interactive)\n  (php-local-manual-complete-function))\n\n(defun php-show-arglist ()\n  \"Show function arguments at cursor position.\"\n  (interactive)\n  (let* ((tagname (php-get-pattern))\n         (buf (find-tag-noselect tagname nil nil))\n         arglist)\n    (with-current-buffer buf\n      (save-excursion\n        (goto-char (point-min))\n        (when (re-search-forward\n               (format \"function\\\\s-+%s\\\\s-*(\\\\([^{]*\\\\))\" tagname)\n               nil t)\n          (setq arglist (buffer-substring-no-properties\n                         (match-beginning 1) (match-end 1))))))\n    (if arglist\n        (message \"Arglist for %s: %s\" tagname arglist)\n      (message \"Unknown function: %s\" tagname))))\n\f\n;; Font Lock\n(defconst php-phpdoc-type-names\n  '(;; PHPStan and Psalm types\n    \"__stringandstringable\" \"array\" \"array-key\" \"associative-array\" \"bool\" \"boolean\"\n    \"callable\" \"callable-array\" \"callable-object\" \"callable-string\" \"class-string\"\n    \"closed-resource\" \"double\" \"empty\" \"empty-scalar\" \"enum-string\" \"false\" \"float\"\n    \"int\" \"integer\" \"interface-string\" \"iterable\" \"list\" \"literal-string\" \"lowercase-string\"\n    \"mixed\" \"negative-int\" \"never\" \"never-return\" \"never-returns\" \"no-return\" \"non-empty-array\"\n    \"non-empty-list\" \"non-empty-literal-string\" \"non-empty-lowercase-string\" \"non-empty-mixed\"\n    \"non-empty-scalar\" \"non-empty-string\" \"non-empty-uppercase-string\" \"non-falsy-string\"\n    \"non-negative-int\" \"non-positive-int\" \"non-zero-int\" \"noreturn\" \"null\" \"number\" \"numeric\"\n    \"numeric-string\" \"object\" \"open-resource\" \"parent\" \"positive-int\" \"pure-callable\"\n    \"pure-closure\" \"resource\" \"scalar\" \"self\" \"static\" \"string\" \"trait-string\" \"true\"\n    \"truthy-string\" \"uppercase-string\" \"void\"\n    ;; PHPStan Generic Types\n    \"key-of\" \"value-of\" \"int-mask-of\" \"int-mask\" \"__benevolent\" \"template-type\" \"new\")\n  \"A list of type and pseudotype names that can be used in PHPDoc.\")\n\n(make-obsolete-variable 'php-phpdoc-type-keywords 'php-phpdoc-type-names \"1.24.2\")\n\n(defconst php-phpdoc-type-tags\n  (list \"package\" \"param\" \"property\" \"property-read\" \"property-write\"\n        \"return\" \"throws\" \"var\" \"self-out\" \"this-out\" \"param-out\"\n        \"type\" \"extends\" \"require-extends\" \"implemtents\" \"require-implements\"\n        \"template\" \"template-covariant\" \"template-extends\" \"template-implements\"\n        \"require-extends\" \"require-implements\"\n        \"assert\" \"assert-if-true\" \"assert-if-false\" \"if-this-is\")\n  \"A list of tags specifying type names.\")\n\n(defconst php-phpdoc-font-lock-doc-comments\n  `((\"{@[-[:alpha:]]+\\\\s-*\\\\([^}]*\\\\)}\" ; \"{@foo ...}\" markup.\n     (0 'php-doc-annotation-tag prepend nil)\n     (1 'php-string prepend nil))\n    (,(rx (group \"$\") (group (in \"A-Za-z_\") (* (in \"0-9A-Za-z_\"))))\n     (1 'php-doc-variable-sigil prepend nil)\n     (2 'php-variable-name prepend nil))\n    (\"\\\\(\\\\$\\\\)\\\\(this\\\\)\\\\>\" (1 'php-doc-$this-sigil prepend nil) (2 'php-doc-$this prepend nil))\n    (,(concat \"\\\\s-@\" (rx (? (or \"phan\" \"phpstan\" \"psalm\") \"-\")) (regexp-opt php-phpdoc-type-tags) \"\\\\s-+\"\n              \"\\\\(\" (rx (+ (? \"?\") (? \"\\\\\") (+ (in \"0-9A-Z_a-z\")) (? \"[]\") (? \"|\"))) \"\\\\)+\")\n     1 'php-string prepend nil)\n    (,(concat \"\\\\(?:|\\\\|\\\\?\\\\|\\\\s-\\\\)\\\\(\"\n              (regexp-opt php-phpdoc-type-names 'words)\n              \"\\\\)\")\n     1 font-lock-type-face prepend nil)\n    (\"^\\\\(?:/\\\\*\\\\)?\\\\(?:\\\\s \\\\|\\\\*\\\\)*\\\\(@[[:alpha:]][-[:alpha:]\\\\]*\\\\)\" ; \"@foo ...\" markup.\n     1 'php-doc-annotation-tag prepend nil)))\n\n(defvar php-phpdoc-font-lock-keywords\n  `((,(lambda (limit)\n        (c-font-lock-doc-comments \"/\\\\*\\\\*\" limit\n          php-phpdoc-font-lock-doc-comments)))))\n\n(defconst php-font-lock-keywords-1 (c-lang-const c-matchers-1 php)\n  \"Basic highlighting for PHP Mode.\")\n\n(defconst php-font-lock-keywords-2 (c-lang-const c-matchers-2 php)\n  \"Medium level highlighting for PHP Mode.\")\n\n(defconst php-font-lock-keywords-3\n  (append\n   php-phpdoc-font-lock-keywords\n   ;; php-mode patterns *before* cc-mode:\n   ;;  only add patterns here if you want to prevent cc-mode from applying\n   ;;  a different face.\n   `(\n     ;; Class declaration specification keywords (implements, extends)\n     (\"\\\\_<\\\\(?:implements\\\\|extends\\\\)\\\\_>\" . 'php-class-declaration-spec)\n     ;; Namespace declaration\n     (\"\\\\_<namespace\\\\_>\" . 'php-namespace-declaration)\n     ;; import statement\n     (\"\\\\_<use\\\\_>\" . 'php-import-declaration)\n     ;; Class modifiers (abstract, final)\n     (\"\\\\_<\\\\(abstract\\\\|final\\\\)\\\\_>\\\\s-+\\\\_<class\\\\>\" 1 'php-class-modifier)\n\n     ;; Highlight variables, e.g. 'var' in '$var' and '$obj->var', but\n     ;; not in $obj->var()\n     (\"\\\\(->\\\\)\\\\(\\\\sw+\\\\)\\\\s-*(\" (1 'php-object-op) (2 php-method-call))\n     (\"\\\\<\\\\(const\\\\)\\\\s-+\\\\(\\\\_<.+?\\\\_>\\\\)\" (1 'php-keyword) (2 'php-constant-assign))\n\n     ;; Logical operator (!)\n     (\"\\\\(!\\\\)[^=]\" 1 'php-logical-op)\n\n     ;; Highlight special variables\n     (\"\\\\(\\\\$\\\\)\\\\(this\\\\)\\\\>\" (1 'php-this-sigil) (2 'php-this))\n     (\"\\\\(\\\\$+\\\\)\\\\(\\\\sw+\\\\)\" (1 'php-variable-sigil) (2 'php-variable-name))\n     (\"\\\\(->\\\\)\\\\([a-zA-Z0-9_]+\\\\)\" (1 'php-object-op) (2 'php-property-name))\n\n     ;; Highlight function/method names\n     (\"\\\\<function\\\\s-+&?\\\\(\\\\(?:\\\\sw\\\\|\\\\s_\\\\)+\\\\)\\\\s-*(\" 1 'php-function-name)\n\n     ;; 'array' and 'callable' are keywords, except in the following situations:\n     ;; - when used as a type hint\n     ;; - when used as a return type\n     (\"\\\\b\\\\(array\\\\|callable\\\\)\\\\s-+&?\\\\$\" 1 font-lock-type-face)\n     (\")\\\\s-*:\\\\s-*\\\\??\\\\(array\\\\|callable\\\\)\\\\b\" 1 font-lock-type-face)\n     ;; For 'array', there is an additional situation:\n     ;; - when used as cast, so that (int) and (array) look the same\n     (\"(\\\\(array\\\\))\" 1 font-lock-type-face)\n\n     (,(regexp-opt php-magical-constants 'symbols) (1 'php-magical-constant))\n     ;; namespaces\n     (\"\\\\(\\\\([a-zA-Z0-9_]+\\\\\\\\\\\\)+[a-zA-Z0-9_]+\\\\|\\\\(\\\\\\\\[a-zA-Z0-9_]+\\\\)+\\\\)[^:a-zA-Z0-9_\\\\\\\\]\" 1 'font-lock-type-face)\n     (\"\\\\(\\\\([a-zA-Z0-9_]+\\\\\\\\\\\\)+[a-zA-Z0-9_]+\\\\|\\\\(\\\\\\\\[a-zA-Z0-9_]+\\\\)+\\\\)::\" 1 'php-constant)\n     (,(eval-when-compile\n         (rx bol (* (syntax whitespace))\n             (or \"private\" \"protected\" \"public\")\n             (+ (syntax whitespace))\n             (group (? \"?\") (+ (or \"\\\\\" (syntax word) (syntax symbol))))\n             (+ (syntax whitespace))\n             (: \"$\" (+ (or (syntax word) (syntax symbol))))))\n      1 'php-class)\n     ;; Support the ::class constant in PHP5.6\n     (\"\\\\sw+\\\\(::\\\\)\\\\(class\\\\)\\\\b\" (1 'php-paamayim-nekudotayim) (2 'php-magical-constant))\n     ;; Class declaration keywords (class, trait, interface)\n     (\"\\\\_<\\\\(class\\\\|trait\\\\|interface\\\\)\\\\_>\" . 'php-class-declaration)\n\n     ;; Highlight static method calls as such. This is necessary for method\n     ;; names which are identical to keywords to be highlighted correctly.\n     (\"\\\\sw+::\\\\(\\\\sw+\\\\)(\" 1 php-static-method-call)\n     ;; Multiple catch (FooException | BarException $e)\n     (,(rx symbol-start \"catch\" symbol-end\n           (* (syntax whitespace)) \"(\" (* (syntax whitespace))\n           (group (+ (or (syntax word) (syntax symbol)))))\n      (1 font-lock-type-face)\n      (,(rx (* (syntax whitespace)) \"|\" (* (syntax whitespace))\n            (group (+ (or (syntax word) (syntax symbol))) symbol-end))\n       nil nil (1 font-lock-type-face)))\n     ;; While c-opt-cpp-* highlights the <?php opening tags, it is not\n     ;; possible to make it highlight short open tags and closing tags\n     ;; as well. So we force the correct face on all cases that\n     ;; c-opt-cpp-* lacks for this purpose.\n     ;;\n     ;; Note that starting a file with <% breaks indentation, a\n     ;; limitation we can/should live with.\n     (,(regexp-opt '(\"<?php\" \"<?=\" \"?>\"\n                     \"<?\"      ;; obsolete short open tag\n                     \"<%\" \"%>\" ;; obsolete ASP tag\n                     ;; Obsoleted tags were deleted in PHP 7.\n                     ;; @see http://php.net/manual/language.basic-syntax.phptags.php\n                     ))\n      0 'php-php-tag))\n\n   ;; cc-mode patterns\n   (c-lang-const c-matchers-3 php)\n\n   ;; php-mode patterns *after* cc-mode:\n   ;;   most patterns should go here, faces will only be applied if not\n   ;;   already fontified by another pattern. Note that using OVERRIDE\n   ;;   is usually overkill.\n   `(\n     (\"\\\\<\\\\(@\\\\)\" 1 'php-errorcontrol-op)\n     ;; import function statement\n     (,(rx symbol-start (group \"use\" (+ (syntax whitespace)) \"function\")\n           (+ (syntax whitespace)))\n      (1 'php-import-declaration)\n      (,(rx (group (+ (or (syntax word) (syntax symbol) \"\\\\\" \"{\" \"}\")))) nil nil (1 'php-function-name t)))\n     ;; import constant statement\n     (,(rx symbol-start (group \"use\" (+ (syntax whitespace)) \"const\")\n           (+ (syntax whitespace)))\n      (1 'php-import-declaration)\n      (,(rx (group (+ (or (syntax word) (syntax symbol) \"\\\\\" \"{\" \"}\")))) nil nil (1 'php-constant-assign t)))\n     ;; Highlight function calls\n     (\"\\\\(\\\\_<\\\\(?:\\\\sw\\\\|\\\\s_\\\\)+?\\\\_>\\\\)\\\\s-*(\" 1 php-function-call)\n     ;; Highlight all upper-cased symbols as constant\n     (\"\\\\<\\\\([A-Z_][A-Z0-9_]+\\\\)\\\\>\" 1 'php-constant)\n\n     ;; Highlight all statically accessed class names as constant,\n     ;; another valid option would be using type-face, but using\n     ;; constant-face because this is how it works in c++-mode.\n     (\"\\\\(\\\\sw+\\\\)\\\\(::\\\\)\" (1 'php-constant) (2 'php-paamayim-nekudotayim))\n\n     ;; Highlight class name after \"use .. as\"\n     (\"\\\\<as\\\\s-+\\\\(\\\\sw+\\\\)\" 1 font-lock-type-face)\n\n     ;; Class names are highlighted by cc-mode as defined in\n     ;; c-class-decl-kwds, below regexp is a workaround for a bug\n     ;; where the class names are not highlighted right after opening\n     ;; a buffer (editing a file corrects it).\n     ;;\n     ;; This behaviour is caused by the preceding '<?php', which\n     ;; cc-mode cannot handle easily. Registering it as a cpp\n     ;; preprocessor works well (i.e. the next line is not a\n     ;; statement-cont) but the highlighting glitch remains.\n     (,(concat (regexp-opt (c-lang-const c-class-decl-kwds php))\n               \" \\\\(\\\\sw+\\\\)\")\n      1 font-lock-type-face)\n\n     ;; Highlight the ? character for nullable return types.\n     (\"function.+:\\\\s-*\\\\(\\\\?\\\\)\\\\(?:\\\\sw\\\\|\\\\s_\\\\|\\\\\\\\\\\\)+\" 1 font-lock-type-face)\n     (\")\\\\s-*:\\\\s-*\\\\(\\\\?\\\\)\\\\(?:\\\\sw\\\\|\\\\s_\\\\|\\\\\\\\\\\\)+\\\\s-*\\\\(?:\\{\\\\|;\\\\)\" 1 font-lock-type-face)\n\n     ;; Highlight the ? character for nullable type hints.\n     (\"\\\\(\\\\?\\\\)\\\\(:?\\\\sw\\\\|\\\\s_\\\\|\\\\\\\\\\\\)+\\\\s-+\\\\$\" 1 font-lock-type-face)\n\n     ;; Class names without a namespace are not highlighted at all when they\n     ;; are used as nullable type hints or return types (both nullable and\n     ;; non-nullable). We have to use separate regular expressions, because\n     ;; we want to capture the class name as well, not just the ? character\n     ;; like the regexps above.\n     (\"\\\\?\\\\(\\\\(:?\\\\sw\\\\|\\\\s_\\\\)+\\\\)\\\\s-+\\\\$\" 1 font-lock-type-face)\n     (\"function.+:\\\\s-*\\\\??\\\\(\\\\(?:\\\\sw\\\\|\\\\s_\\\\)+\\\\)\" 1 font-lock-type-face)\n     (\")\\\\s-*:\\\\s-*\\\\??\\\\(\\\\(?:\\\\sw\\\\|\\\\s_\\\\)+\\\\)\\\\s-*\\\\(?:\\{\\\\|;\\\\)\" 1 font-lock-type-face)\n\n     ;; Assignment operators (=, +=, ...)\n     (\"\\\\([^=<!>]+?\\\\([\\-+./%]?=\\\\)[^=<!]+?\\\\)\" 2 'php-assignment-op)\n\n     ;; Comparison operators (==, ===, >=, ...)\n     (\"\\\\([!=]=\\\\{1,2\\\\}[>]?\\\\|[<>]=?\\\\)\" 1 'php-comparison-op)\n\n     ;; Arithmetic operators (+, -, *, **, /, %)\n     (\"\\\\(?:[A-Za-z0-9[:blank:]]\\\\)\\\\([\\-+*/%]\\\\*?\\\\)\\\\(?:[A-Za-z0-9[:blank:]]\\\\)\" 1 'php-arithmetic-op)\n\n     ;; Increment and Decrement operators (++, --)\n     (\"\\\\(\\-\\-\\\\|\\+\\+\\\\)\\$\\\\w+\" 1 'php-inc-dec-op) ;; pre inc/dec\n     (\"\\$\\\\w+\\\\(\\-\\-\\\\|\\+\\+\\\\)\" 1 'php-inc-dec-op) ;; post inc/dec\n\n     ;; Logical operators (and, or, &&, ...)\n     ;; Not operator (!) is defined in \"before cc-mode\" section above.\n     (\"\\\\(&&\\\\|||\\\\)\" 1 'php-logical-op)\n     ;; string interpolation (\"$var, ${var}, {$var}\")\n     (php-mode--string-interpolated-variable-font-lock-find 0 nil)\n     (,(rx symbol-start (group (or \"get\" \"set\")) (+ (syntax whitespace)) (or \"{\" \"=>\"))\n      1 'php-builtin)))\n  \"Detailed highlighting for PHP Mode.\")\n\n(defvar php-font-lock-keywords php-font-lock-keywords-3\n  \"Default expressions to highlight in PHP Mode.\")\n\n(eval-when-compile\n   (unless (boundp 'flymake-proc-allowed-file-name-masks)\n     (add-to-list 'flymake-allowed-file-name-masks\n                  '(\"\\\\.php[345s]?\\\\'\" php-flymake-php-init))))\n\f\n\n(defun php-send-region (start end)\n  \"Send the region between `START' and `END' to PHP for execution.\nThe output will appear in the buffer *PHP*.\"\n  (interactive \"r\")\n  (let ((php-buffer (get-buffer-create \"*PHP*\"))\n        (code (buffer-substring start end)))\n    ;; Calling 'php -r' will fail if we send it code that starts with\n    ;; '<?php', which is likely.  So we run the code through this\n    ;; function to check for that prefix and remove it.\n    (let ((cleaned-php-code (if (string-prefix-p \"<?php\" code t)\n                                (substring code 5)\n                              code)))\n      (call-process php-executable nil php-buffer nil \"-r\" cleaned-php-code))))\n\n\f\n(defconst php-string-interpolated-variable-regexp\n  \"{\\\\$[^}\\n\\\\\\\\]*\\\\(?:\\\\\\\\.[^}\\n\\\\\\\\]*\\\\)*}\\\\|\\\\${\\\\sw+}\\\\|\\\\$\\\\sw+\")\n\n(defun php-mode--string-interpolated-variable-font-lock-find (limit)\n  \"Apply text-property to LIMIT for string interpolation by font-lock.\"\n  (let (quoted-stuff)\n    (while (re-search-forward php-string-interpolated-variable-regexp limit t)\n      (setq quoted-stuff (php-in-string-p))\n      (when (or (eq ?\\\" quoted-stuff) (eq ?` quoted-stuff))\n        (put-text-property (match-beginning 0) (match-end 0) 'face 'php-variable-name))))\n  nil)\n\f\n;;; Correct the behavior of `delete-indentation' by modifying the\n;;; logic of `fixup-whitespace'.\n(defun php-mode--fixup-whitespace-after ()\n  \"Remove whitespace before certain characters in PHP Mode.\"\n  (when (and (derived-mode-p 'php-mode)\n             (or (looking-at-p \" \\\\(?:;\\\\|,\\\\|->\\\\|::\\\\)\")\n                 (save-excursion\n                   (forward-char -2)\n                   (looking-at-p \"->\\\\|::\"))))\n    (delete-char 1)))\n\n;; Advice for lsp-bridge' acm-backend-tabnine\n;; see https://github.com/manateelazycat/lsp-bridge/issues/402#issuecomment-1305653058\n(defun php-acm-backend-tabnine-candidate-expand-filter-args (args)\n  \"Adjust to replace bound-start ARGS for Tabnine in PHP.\"\n  (if (not (derived-mode-p 'php-mode))\n      args\n    (cl-multiple-value-bind (candidate-info bound-start) args\n      (save-excursion\n        (goto-char bound-start)\n        (when (looking-at-p (eval-when-compile (regexp-quote \"$\")))\n          (setq bound-start (1+ bound-start))))\n      (list candidate-info bound-start))))\n\f\n;;;###autoload\n(progn\n  (add-to-list 'auto-mode-alist '(\"/\\\\.php_cs\\\\(?:\\\\.dist\\\\)?\\\\'\" . php-mode))\n  (add-to-list 'auto-mode-alist '(\"\\\\.\\\\(?:php\\\\.inc\\\\|stub\\\\)\\\\'\" . php-mode))\n  (add-to-list 'auto-mode-alist '(\"\\\\.\\\\(?:php[s345]?\\\\|phtml\\\\)\\\\'\" . php-mode-maybe)))\n\n(provide 'php-mode)\n;;; php-mode.el ends here\n"
  },
  {
    "path": "lisp/php-project.el",
    "content": ";;; php-project.el --- Project support for PHP application  -*- lexical-binding: t; -*-\n\n;; Copyright (C) 2023  Friends of Emacs-PHP development\n\n;; Author: USAMI Kenta <tadsan@zonu.me>\n;; Keywords: tools, files\n;; URL: https://github.com/emacs-php/php-mode\n;; Version: 1.26.1\n;; License: GPL-3.0-or-later\n\n;; This program is free software; you can redistribute it and/or modify\n;; it under the terms of the GNU General Public License as published by\n;; the Free Software Foundation, either version 3 of the License, or\n;; (at your option) any later version.\n\n;; This program is distributed in the hope that it will be useful,\n;; but WITHOUT ANY WARRANTY; without even the implied warranty of\n;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;; GNU General Public License for more details.\n\n;; You should have received a copy of the GNU General Public License\n;; along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n;;; Commentary:\n\n;; Define project specific functions and variables for PHP application.\n;;\n;; ## API\n;;\n;; ### `php-project-get-root-dir()'\n;;\n;; Return root directory of current buffer file.  The root directory is\n;; determined by several marker file or directory.\n;;\n;; ### `php-project-get-bootstrap-scripts()'\n;;\n;; Return list of path to bootstrap script file.\n;;\n;; ### `php-project-get-php-executable()'\n;;\n;; Return path to PHP executable file with the project settings overriding.\n;;\n;; ## `.dir-locals.el' support\n;;\n;; - `php-project-coding-style'\n;;   - Symbol value of the coding style.  (ex.  `pear', `psr2')\n;; - `php-project-root'\n;;   - Symbol of marker file of project root.  (ex.  `git', `composer')\n;;   - Full path to project root directory.  (ex.  \"/path/to/your-project\")\n;; - `php-project-bootstrap-scripts'\n;;   - List of path to bootstrap file of project.\n;;     (ex.  (((root . \"vendor/autoload.php\") (root . \"inc/bootstrap.php\")))\n;; - `php-project-php-executable'\n;;   - Path to project specific PHP executable file.\n;;   - If you want to use a file different from the system wide `php' command.\n;;\n\n;;; Code:\n(eval-when-compile\n  (require 'cl-lib))\n(require 'projectile nil t)\n\f\n;; Constants\n(defconst php-project-composer-autoloader \"vendor/autoload.php\")\n\f\n;; Custom variables\n(defgroup php-project nil\n  \"Major mode for editing PHP code.\"\n  :tag \"PHP Project\"\n  :prefix \"php-project-\"\n  :group 'php)\n\n(defcustom php-project-auto-detect-etags-file nil\n  \"If `T', automatically detect etags file when file is opened.\"\n  :tag \"PHP Project Auto Detect Etags File\"\n  :group 'php-project\n  :type 'boolean)\n\n(defcustom php-project-use-projectile-to-detect-root nil\n  \"If `T' and projectile-mode is activated, use Projectile for root detection.\"\n  :tag \"PHP Project Use Projectile To Detect Root\"\n  :group 'php-project\n  :type 'boolean)\n\f\n;; Variables\n(defvar php-project-available-root-files\n  '((projectile \".projectile\")\n    (composer   \"composer.json\" \"composer.lock\")\n    (git        \".git\")\n    (mercurial  \".hg\")\n    (subversion \".svn\")\n    ;; NOTICE: This method does not detect the top level of .editorconfig\n    ;;         However, we can integrate it by adding the editorconfig.el's API.\n    ;;(editorconfig . \".editorconfig\")\n    ))\n\f\n;; Buffer local variables\n\n;;;###autoload\n(progn\n  (defvar-local php-project-root 'auto\n    \"Method of searching for the top level directory.\n\n`auto' (default)\n      Try to search file in order of `php-project-available-root-files'.\n\nSYMBOL\n      Key of `php-project-available-root-files'.\n\nSTRING\n      A file/directory name of top level marker.\n      If the string is an actual directory path, it is set as the absolute path\n      of the root directory, not the marker.\")\n  (put 'php-project-root 'safe-local-variable\n       #'(lambda (v) (or (stringp v) (assq v php-project-available-root-files))))\n\n  (defvar-local php-project-etags-file nil)\n  (put 'php-project-etags-file 'safe-local-variable\n       #'(lambda (v) (or (functionp v)\n                         (eq v t)\n                         (php-project--eval-bootstrap-scripts v))))\n\n  (defvar-local php-project-bootstrap-scripts nil\n    \"List of path to bootstrap php script file.\n\nThe ideal bootstrap file is silent, it only includes dependent files,\ndefines constants, and sets the class loaders.\")\n  (put 'php-project-bootstrap-scripts 'safe-local-variable #'php-project--eval-bootstrap-scripts)\n\n  (defvar-local php-project-php-executable nil\n    \"Path to php executable file.\")\n  (put 'php-project-php-executable 'safe-local-variable\n       #'(lambda (v) (and (stringp v) (file-executable-p v))))\n\n  (defvar-local php-project-coding-style nil\n    \"Symbol value of the coding style of the project that PHP major mode refers to.\n\nTypically it is `pear', `drupal', `wordpress', `symfony2' and `psr2'.\")\n  (put 'php-project-coding-style 'safe-local-variable #'symbolp)\n\n  (defvar-local php-project-align-lines t\n    \"If T, automatically turn on `php-align-mode' by `php-align-setup'.\")\n  (put 'php-project-align-lines 'safe-local-variable #'booleanp)\n\n  (defvar-local php-project-php-file-as-template 'auto\n    \"\n`auto' (default)\n      Automatically switch to mode for template when HTML tag detected in file.\n\n`t'\n      Switch all PHP files in that directory to mode for HTML template.\n\n`nil'\n      Any .php  in that directory is just a PHP script.\n\n\\(\\(PATTERN . SYMBOL))\n      Alist of file name pattern regular expressions and the above symbol pairs.\n      PATTERN is regexp pattern.\n\")\n  (put 'php-project-php-file-as-template 'safe-local-variable #'php-project--validate-php-file-as-template)\n\n  (defvar-local php-project-repl nil\n    \"Function name or path to REPL (interactive shell) script.\")\n  (put 'php-project-repl 'safe-local-variable\n       #'(lambda (v) (or (functionp v)\n                         (php-project--eval-bootstrap-scripts v))))\n\n  (defvar-local php-project-unit-test nil\n    \"Function name or path to unit test script.\")\n  (put 'php-project-unit-test 'safe-local-variable\n       #'(lambda (v) (or (functionp v)\n                         (php-project--eval-bootstrap-scripts v))))\n\n  (defvar-local php-project-deploy nil\n    \"Function name or path to deploy script.\")\n  (put 'php-project-deploy 'safe-local-variable\n       #'(lambda (v) (or (functionp v)\n                         (php-project--eval-bootstrap-scripts v))))\n\n  (defvar-local php-project-build nil\n    \"Function name or path to build script.\")\n  (put 'php-project-build 'safe-local-variable\n       #'(lambda (v) (or (functionp v)\n                         (php-project--eval-bootstrap-scripts v))))\n\n  (defvar-local php-project-server-start nil\n    \"Function name or path to server-start script.\")\n  (put 'php-project-server-start 'safe-local-variable\n       #'(lambda (v) (or (functionp v)\n                         (php-project--eval-bootstrap-scripts v)))))\n\f\n;; Functions\n(defun php-project--validate-php-file-as-template (val)\n  \"Return T when `VAL' is valid list of safe .\"\n  (cond\n   ((null val) t)\n   ((memq val '(t auto)) t)\n   ((listp val)\n    (cl-loop for v in val\n             always (and (consp v)\n                         (stringp (car v))\n                         (php-project--validate-php-file-as-template (cdr v)))))\n   (t nil)))\n\n(defun php-project--eval-bootstrap-scripts (val)\n  \"Return T when `VAL' is valid list of safe bootstrap php script.\"\n  (cond\n   ((stringp val) (and (file-exists-p val) val))\n   ((eq 'composer val)\n    (let ((path (expand-file-name php-project-composer-autoloader (php-project-get-root-dir))))\n      (and (file-exists-p path) path)))\n   ((and (consp val) (eq 'root (car val)) (stringp (cdr val)))\n    (let ((path (expand-file-name (cdr val) (php-project-get-root-dir))))\n      (and (file-exists-p path) path)))\n   ((null val) nil)\n   ((listp val)\n    (cl-loop for v in val collect (php-project--eval-bootstrap-scripts v)))\n   (t nil)))\n\n(defun php-project-get-php-executable ()\n  \"Return path to PHP executable file.\"\n  (cond\n   ((and (stringp php-project-php-executable)\n         (file-executable-p php-project-php-executable))\n    php-project-php-executable)\n   ((boundp 'php-executable) php-executable)\n   (t (executable-find \"php\"))))\n\n(defun php-project-get-file-html-template-type (filename)\n  \"Return symbol T, NIL or `auto' by `FILENAME'.\"\n  (cond\n   ((not php-project-php-file-as-template) nil)\n   ((eq t php-project-php-file-as-template) t)\n   ((eq 'auto php-project-php-file-as-template) 'auto)\n   ((listp php-project-php-file-as-template)\n    (assoc-default filename php-project-php-file-as-template #'string-match-p))\n   (t (prog1 nil\n        (warn \"php-project-php-file-as-template is unexpected format\")))))\n\n(defun php-project-apply-local-variables ()\n  \"Apply php-project variables to local variables.\"\n  (when (null tags-file-name)\n    (when (or (and php-project-auto-detect-etags-file\n                   (null php-project-etags-file))\n              (eq php-project-etags-file t))\n      (let ((tags-file (expand-file-name \"TAGS\" (php-project-get-root-dir))))\n        (when (file-exists-p tags-file)\n          (setq-local php-project-etags-file tags-file))))\n    (when php-project-etags-file\n      (setq-local tags-file-name (php-project--eval-bootstrap-scripts php-project-etags-file)))))\n;;;###autoload\n(defun php-project-get-bootstrap-scripts ()\n  \"Return list of bootstrap script.\"\n  (let ((scripts (php-project--eval-bootstrap-scripts php-project-bootstrap-scripts)))\n    (if (stringp scripts) (list scripts) scripts)))\n\n;;;###autoload\n(defun php-project-get-root-dir ()\n  \"Return path to current PHP project.\"\n  (if (and (stringp php-project-root) (file-directory-p php-project-root))\n      php-project-root\n    (php-project--detect-root-dir)))\n\n;;;###autoload\n(defun php-project-project-find-function (dir)\n  \"Return path to current PHP project from DIR.\n\nThis function is compatible with `project-find-functions'.\"\n  (let ((default-directory dir))\n    (when-let* ((root (php-project-get-root-dir)))\n      (if (file-exists-p (expand-file-name \".git\" root))\n          (cons 'vc root)\n        (cons 'transient root)))))\n\n(defun php-project--detect-root-dir ()\n  \"Return detected project root.\"\n  (if (and php-project-use-projectile-to-detect-root\n           (bound-and-true-p projectile-mode)\n           (fboundp 'projectile-project-root))\n      (projectile-project-root default-directory)\n    (let ((detect-method\n           (cond\n            ((stringp php-project-root) (list php-project-root))\n            ((eq php-project-root 'auto)\n             (cl-loop for m in php-project-available-root-files\n                      append (cdr m)))\n            (t (cdr-safe (assq php-project-root php-project-available-root-files))))))\n      (cl-loop for m in detect-method\n               thereis (locate-dominating-file default-directory m)))))\n\n(provide 'php-project)\n;;; php-project.el ends here\n"
  },
  {
    "path": "lisp/php.el",
    "content": ";;; php.el --- PHP support for friends               -*- lexical-binding: t; -*-\n\n;; Copyright (C) 2023  Friends of Emacs-PHP development\n;; Copyright (C) 1985, 1987, 1992-2022 Free Software Foundation, Inc.\n\n;; Author: USAMI Kenta <tadsan@zonu.me>\n;; Created: 5 Dec 2018\n;; Version: 1.26.1\n;; Keywords: languages, php\n;; Homepage: https://github.com/emacs-php/php-mode\n;; License: GPL-3.0-or-later\n\n;; This program is free software; you can redistribute it and/or modify\n;; it under the terms of the GNU General Public License as published by\n;; the Free Software Foundation, either version 3 of the License, or\n;; (at your option) any later version.\n\n;; This program is distributed in the hope that it will be useful,\n;; but WITHOUT ANY WARRANTY; without even the implied warranty of\n;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;; GNU General Public License for more details.\n\n;; You should have received a copy of the GNU General Public License\n;; along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n;;; Commentary:\n\n;; This file provides common variable and functions for PHP packages.\n\n;; These functions are copied function from GNU Emacs.\n;;\n;; - c-end-of-token (cc-engine.el)\n;;\n\n;;; Code:\n(eval-when-compile\n  (require 'cc-mode)\n  (require 'cl-lib))\n(require 'cc-engine)\n(require 'flymake)\n(require 'php-project)\n(require 'rx)\n\n;;;###autoload\n(defgroup php nil\n  \"Language support for PHP.\"\n  :tag \"PHP\"\n  :group 'languages\n  :link '(url-link :tag \"Official Site\" \"https://github.com/emacs-php/php-mode\")\n  :link '(url-link :tag \"PHP Mode Wiki\" \"https://github.com/emacs-php/php-mode/wiki\"))\n\n(defcustom php-executable (or (executable-find \"php\") \"php\")\n  \"The location of the PHP executable.\"\n  :group 'php\n  :tag \"PHP Executable\"\n  :type 'string)\n\n(defcustom php-phpdbg-executable (list \"phpdbg\")\n  \"The location of the PHPDBG executable.\"\n  :group 'php\n  :tag \"PHP PHPDBG Executable\"\n  :type '(repeat string))\n\n(defcustom php-php-parse-executabe nil\n  \"The location of the php-parse executable.\"\n  :group 'php\n  :tag \"PHP php-parse Executable\"\n  :type '(repeat string))\n\n(defcustom php-site-url \"https://www.php.net/\"\n  \"Default PHP.net site URL.\n\nThe URL to use open PHP manual and search word.\"\n  :group 'php\n  :tag \"PHP Site URL\"\n  :type 'string)\n\n(defcustom php-manual-url 'en\n  \"URL at which to find PHP manual.\nYou can replace \\\"en\\\" with your ISO language code.\"\n  :group 'php\n  :tag \"PHP Manual URL\"\n  :type '(choice (const  :tag \"English\" en)\n                 (const  :tag \"Brazilian Portuguese\" pt_BR)\n                 (const  :tag \"Chinese (Simplified)\" zh)\n                 (const  :tag \"French\" fr)\n                 (const  :tag \"German\" de)\n                 (const  :tag \"Japanese\" ja)\n                 (const  :tag \"Romanian\" ro)\n                 (const  :tag \"Russian\" ru)\n                 (const  :tag \"Spanish\" es)\n                 (const  :tag \"Turkish\" tr)\n                 (string :tag \"PHP manual URL\")))\n\n(defcustom php-search-url nil\n  \"URL at which to search for documentation on a word.\"\n  :group 'php\n  :tag \"PHP Search URL\"\n  :type '(choice (string :tag \"URL to search PHP documentation\")\n                 (const  :tag \"Use `php-site-url' variable\" nil)))\n\n(defcustom php-completion-file \"\"\n  \"Path to the file which contains the function names known to PHP.\"\n  :type 'string)\n\n(defcustom php-manual-path \"\"\n  \"Path to the directory which contains the PHP manual.\"\n  :type 'string)\n\n(defcustom php-search-documentation-function #'php-search-web-documentation\n  \"Function to search PHP Manual at cursor position.\"\n  :group 'php\n  :tag \"PHP Search Documentation Function\"\n  :type '(choice (const :tag \"Use online documentation\" php-search-web-documentation)\n                 (const :tag \"Use local documentation\" php-local-manual-search)\n                 (function :tag \"Use other function\")))\n\n(defcustom php-search-documentation-browser-function nil\n  \"Function to display PHP documentation in a WWW browser.\n\nIf non-nil, this shadows the value of `browse-url-browser-function' when\ncalling `php-search-documentation' or `php-search-local-documentation'.\"\n  :group 'php\n  :tag \"PHP Search Documentation Browser Function\"\n  :type '(choice (const :tag \"default\" nil) function)\n  :link '(variable-link browse-url-browser-function))\n\f\n;; Define function for browsing manual\n(defun php-browse-documentation-url (url)\n  \"Browse a documentation URL using the configured browser function.\n\nSee `php-search-documentation-browser-function'.\"\n  (let ((browse-url-browser-function\n         (or php-search-documentation-browser-function\n             browse-url-browser-function)))\n    (browse-url url)))\n\n(defun php-browse-manual ()\n  \"Bring up manual for PHP.\"\n  (interactive)\n  (browse-url (if (stringp php-manual-url)\n                  php-manual-url\n                (format \"%smanual/%s/\" php-site-url php-manual-url))))\n\n(defun php-search-web-documentation (word)\n  \"Return URL to search PHP manual search by `WORD'.\"\n  (interactive (list (current-word)))\n  (php-browse-documentation-url (concat (or php-search-url php-site-url) word)))\n\n(defun php-search-documentation (&optional word)\n  \"Search PHP documentation for the `WORD' at point.\n\nIf `php-manual-path' has a non-empty string value then the command\nwill first try searching the local documentation.  If the requested\ndocumentation does not exist it will fallback to searching the PHP\nwebsite.\n\nWith a prefix argument, prompt for a documentation word to search\nfor.  If the local documentation is available, it is used to build\na completion list.\"\n  (interactive)\n  (if (called-interactively-p 'interactive)\n      (call-interactively php-search-documentation-function)\n    (funcall php-search-documentation-function word)))\n\n(defcustom php-class-suffix-when-insert \"::\"\n  \"Suffix for inserted class.\"\n  :group 'php\n  :type 'string)\n\n(defcustom php-namespace-suffix-when-insert \"\\\\\"\n  \"Suffix for inserted namespace.\"\n  :group 'php\n  :type 'string)\n\n(defcustom php-default-major-mode 'php-mode\n  \"Major mode for editing PHP script.\"\n  :group 'php\n  :tag \"PHP Default Major Mode\"\n  :type 'function)\n\n(defcustom php-html-template-major-mode 'web-mode\n  \"Major mode for editing PHP-HTML template.\"\n  :group 'php\n  :tag \"PHP-HTML Template Major Mode\"\n  :type 'function)\n\n(defcustom php-blade-template-major-mode 'web-mode\n  \"Major mode for editing Blade template.\"\n  :group 'php\n  :tag \"PHP Blade Template Major Mode\"\n  :type 'function)\n\n(defcustom php-template-mode-alist\n  `((\"\\\\.blade\" . ,php-blade-template-major-mode)\n    (\"\\\\.phpt\\\\'\" . ,(if (fboundp 'phpt-mode) 'phpt-mode php-default-major-mode))\n    (\"\\\\.phtml\\\\'\" . ,php-html-template-major-mode))\n  \"Automatically use another MAJOR-MODE when open template file.\"\n  :group 'php\n  :tag \"PHP Template Mode Alist\"\n  :type '(alist :key-type regexp :value-type function)\n  :link '(url-link :tag \"web-mode\" \"http://web-mode.org/\")\n  :link '(url-link :tag \"phpt-mode\" \"https://github.com/emacs-php/phpt-mode\"))\n\n(defcustom php-mode-maybe-hook nil\n  \"List of functions to be executed on entry to `php-mode-maybe'.\"\n  :group 'php\n  :tag \"PHP Mode Maybe Hook\"\n  :type 'hook)\n\n(defcustom php-default-builtin-web-server-port 3939\n  \"Port number of PHP Built-in HTTP server (php -S).\"\n  :group 'php\n  :tag \"PHP Default Built-in Web Server Port\"\n  :type 'integer\n  :link '(url-link :tag \"Built-in web server\"\n                   \"https://www.php.net/manual/features.commandline.webserver.php\"))\n\n(defcustom php-topsy-separator \" > \"\n  \"Separator string for `php-topsy-beginning-of-defun-with-class'.\"\n  :group 'php\n  :tag \"PHP Topsy Separator\"\n  :type 'string)\n\n(defcustom php-function-call 'php-function-call-traditional\n  \"Face name to use for method call.\"\n  :group 'php\n  :tag \"PHP Function Call\"\n  :type 'face)\n\n(defcustom php-method-call 'php-method-call-traditional\n  \"Face name to use for method call.\"\n  :group 'php\n  :tag \"PHP Method Call\"\n  :type 'face)\n\n(defcustom php-static-method-call 'php-static-method-call-traditional\n  \"Face name to use for method call.\"\n  :group 'php\n  :tag \"PHP Static Method Call\"\n  :type 'face)\n\f\n;;; PHP Keywords\n(defconst php-magical-constants\n  '(\"__CLASS__\" \"__DIR__\" \"__FILE__\" \"__FUNCTION__\" \"__LINE__\"\n    \"__METHOD__\" \"__NAMESPACE__\" \"__TRAIT__\")\n  \"Magical keyword that is expanded at compile time.\n\nThese are different from \\\"constants\\\" in strict terms.\nsee https://www.php.net/manual/language.constants.predefined.php\")\n\n(defconst php-re-token-symbols\n  (eval-when-compile\n    (regexp-opt (list \"&\" \"&=\" \"array(\" \"(array)\" \"&&\" \"||\" \"(bool)\" \"(boolean)\" \"break;\" \"?>\" \"%>\"\n                      \"??\" \"??=\" \".=\" \"--\" \"/=\" \"=>\" \"(real)\" \"(double)\" \"(float)\" \"::\" \"...\"\n                      \"__halt_compiler()\" \"++\" \"(int)\" \"(integer)\" \"==\" \">=\" \"===\" \"!=\" \"<>\" \"!==\"\n                      \"<=\" \"-=\" \"%=\" \"*=\" \"\\\\\" \"(object)\" \"->\" \"?->\" \"<?php\" \"<?\" \"<?=\" \"|=\" \"+=\"\n                      \"**\" \"**=\" \"<<\" \"<<=\" \"<=>\" \">>\" \">>=\" \"<<<\" \"(string)\" \"^=\" \"yield from\"\n                      \"[\" \"]\" \"(\" \")\" \"{\" \"}\" \";\")\n                t)))\n\f\n;;; Utillity for locate language construction\n(defsubst php-in-string-p ()\n  \"Return non-nil if inside a string.\nIt is the character that will terminate the string, or t if the string should\nbe terminated by a generic string delimiter.\"\n  (nth 3 (syntax-ppss)))\n\n(defsubst php-in-comment-p ()\n  \"Return NIL if outside a comment, T if inside a non-nestable comment, else\nan integer (the current comment nesting).\"\n  (nth 4 (syntax-ppss)))\n\n(defsubst php-in-string-or-comment-p ()\n  \"Return character address of start of comment or string; nil if not in one.\"\n  (nth 8 (syntax-ppss)))\n\n(defsubst php-in-poly-php-html-mode ()\n  \"Return T if current buffer is in `poly-html-mode'.\"\n  (bound-and-true-p poly-php-html-mode))\n\n(defconst php-beginning-of-defun-regexp\n  (eval-when-compile\n    (rx bol\n        (* (syntax whitespace))\n        (* (or \"abstract\" \"final\" \"private\" \"protected\" \"public\" \"static\")\n           (+ (syntax whitespace)))\n        \"function\"\n        (+ (syntax whitespace))\n        (? \"&\" (* (syntax whitespace)))\n        (group (+ (or (syntax word) (syntax symbol))))\n        (* (syntax whitespace))\n        \"(\"))\n  \"Regular expression for a PHP function.\")\n\n(eval-when-compile\n  (cl-defun php-create-regexp-for-method (&optional visibility &key include-args)\n    \"Make a regular expression for methods with the given VISIBILITY.\n\nVISIBILITY must be a string that names the visibility for a PHP\nmethod, e.g. `public'.  The parameter VISIBILITY can itself also\nbe a regular expression.\n\nThe regular expression this function returns will check for other\nkeywords that can appear in method signatures, e.g. `final' and\n`static'.  The regular expression will have one capture group\nwhich will be the name of the method.\"\n    (when (stringp visibility)\n      (setq visibility (list visibility)))\n    (rx-to-string `(: line-start\n                      (* (syntax whitespace))\n                      (group\n                       ,@(if visibility\n                             `((* (or \"abstract\" \"final\" \"static\")\n                                  (+ (syntax whitespace)))\n                               (or ,@visibility)\n                               (+ (syntax whitespace))\n                               (* (or \"abstract\" \"final\" \"static\")\n                                  (+ (syntax whitespace))))\n                           '((* (* (or \"abstract\" \"final\" \"static\"\n                                       \"private\" \"protected\" \"public\")\n                                   (+ (syntax whitespace))))))\n                       \"function\"\n                       (+ (syntax whitespace))\n                       (? \"&\" (* (syntax whitespace)))\n                       (group (+ (or (syntax word) (syntax symbol))))\n                       (* (syntax whitespace))\n                       \"(\"\n                       ,@(when include-args\n                           '((* any) line-end))))))\n\n  (defun php-create-regexp-for-classlike (type)\n    \"Accepts a `TYPE' of a `classlike' object as a string, such as\n`class' or `interface', and returns a regexp as a string which\ncan be used to match against definitions for that classlike.\"\n    (concat\n     ;; First see if 'abstract' or 'final' appear, although really these\n     ;; are not valid for all values of `type' that the function\n     ;; accepts.\n     (eval-when-compile\n       (rx line-start\n           (* (syntax whitespace))\n           (? (or \"abstract\" \"final\" \"readonly\")\n              (+ (syntax whitespace)))))\n     ;; The classlike type\n     type\n     ;; Its name, which is the first captured group in the regexp.  We\n     ;; allow backslashes in the name to handle namespaces, but again\n     ;; this is not necessarily correct for all values of `type'.\n     ;; (rx (+ (syntax whitespace))\n     ;;     (group (+ (or (syntax word) \"\\\\\" (syntax symbol)))))\n     \"\\\\s-+\\\\(\\\\(?:\\\\sw\\\\|\\\\\\\\\\\\|\\\\s_\\\\)+\\\\)\")))\n\n(defconst php-imenu-generic-expression-default\n  (eval-when-compile\n    `((\"Methods\"\n       ,(php-create-regexp-for-method nil :include-args t) 1)\n      (\"Properties\"\n       ,(rx line-start\n            (* (syntax whitespace))\n            (group\n             (+ (or \"public\" \"protected\" \"private\" \"static\" \"var\")\n                (+ (syntax whitespace)))\n             (* (? (? (or \"|\" \"?\"))\n                   (or \"\\\\\" (syntax word) (syntax symbol))\n                   (+ (syntax whitespace))))\n             \"$\" (+ (or (syntax word) (syntax symbol)))\n             word-boundary))\n       1)\n      (\"Constants\"\n       ,(rx line-start\n            (* (syntax whitespace))\n            (group\n             (* (or \"public\" \"protected\" \"private\")\n                (+ (syntax whitespace)))\n             \"const\"\n             (+ (syntax whitespace))\n             (+ (or (syntax word) (syntax symbol)))\n             (* (syntax whitespace))\n             (? \"=\" (* (syntax whitespace))\n                (repeat 0 40 any))))\n       1)\n      (\"Functions\"\n       ,(rx line-start\n            (* (syntax whitespace))\n            (group\n             \"function\"\n             (+ (syntax whitespace))\n             (+ (or (syntax word) (syntax symbol)))\n             (* (syntax whitespace))\n             \"(\"\n             (repeat 0 100 any)))\n       1)\n      (\"Import\"\n       ,(rx line-start\n            ;; (* (syntax whitespace))\n            (group\n             \"use\"\n             (+ (syntax whitespace))\n             (repeat 0 100 any)))\n       1)\n      (\"Classes\"\n       ,(php-create-regexp-for-classlike \"\\\\(?:class\\\\|interface\\\\|trait\\\\|enum\\\\)\") 0)\n      (\"Namespace\"\n       ,(php-create-regexp-for-classlike \"namespace\") 1)))\n  \"Imenu generic expression for PHP Mode.  See `imenu-generic-expression'.\")\n\n(defconst php-imenu-generic-expression-simple\n  (eval-when-compile\n    `((\"Methods\"\n       ,(php-create-regexp-for-method nil) 2)\n      (\"Properties\"\n       ,(rx line-start\n            (* (syntax whitespace))\n            (+ (or \"public\" \"protected\" \"private\" \"static\" \"var\")\n               (+ (syntax whitespace)))\n            (* (? (? (or \"|\" \"?\"))\n                  (or \"\\\\\" (syntax word) (syntax symbol))\n                  (+ (syntax whitespace))))\n            (group\n             \"$\" (+ (or (syntax word) (syntax symbol))))\n            word-boundary)\n       1)\n      (\"Constants\"\n       ,(rx line-start\n            (* (syntax whitespace))\n            (group\n             (* (or \"public\" \"protected\" \"private\")\n                (+ (syntax whitespace)))\n             \"const\"\n             (+ (syntax whitespace))\n             (+ (or (syntax word) (syntax symbol)))))\n       1)\n      (\"Functions\"\n       ,(rx line-start\n            (* (syntax whitespace))\n            \"function\"\n            (+ (syntax whitespace))\n            (group\n             (+ (or (syntax word) (syntax symbol)))))\n       1)\n      (\"Classes\"\n       ,(php-create-regexp-for-classlike \"\\\\(?:class\\\\|interface\\\\|trait\\\\|enum\\\\)\") 1)\n      (\"Namespace\"\n       ,(php-create-regexp-for-classlike \"namespace\") 1)))\n  \"Imenu generic expression for PHP Mode.  See `imenu-generic-expression'.\")\n\n(defconst php-imenu-generic-expression-legacy\n  (eval-when-compile\n    `((\"Namespaces\"\n       ,(php-create-regexp-for-classlike \"namespace\") 1)\n      (\"Classes\"\n       ,(php-create-regexp-for-classlike \"class\") 1)\n      (\"Interfaces\"\n       ,(php-create-regexp-for-classlike \"interface\") 1)\n      (\"Traits\"\n       ,(php-create-regexp-for-classlike \"trait\") 1)\n      (\"All Methods\"\n       ,(php-create-regexp-for-method) 1)\n      (\"Private Methods\"\n       ,(php-create-regexp-for-method '(\"private\")) 2)\n      (\"Protected Methods\"\n       ,(php-create-regexp-for-method '(\"protected\"))  2)\n      (\"Public Methods\"\n       ,(php-create-regexp-for-method '(\"public\")) 2)\n      (\"Anonymous Functions\"\n       \"\\\\<\\\\(\\\\(?:\\\\sw\\\\|\\\\s_\\\\)+\\\\)\\\\s-*=\\\\s-*f\\\\(unctio\\\\)?n\\\\s-*(\" 1)\n      (\"Named Functions\"\n       \"^\\\\s-*function\\\\s-+\\\\(\\\\(?:\\\\sw\\\\|\\\\s_\\\\)+\\\\)\\\\s-*(\" 1)))\n  \"Imenu generic expression for PHP Mode.  See `imenu-generic-expression'.\")\n\n(defcustom php-imenu-generic-expression 'php-imenu-generic-expression-default\n  \"Default Imenu generic expression for PHP Mode.  See `imenu-generic-expression'.\"\n  :type '(choice (alist :key-type string :value-type (list string))\n                 (const php-imenu-generic-expression-legacy)\n                 (const php-imenu-generic-expression-simple)\n                 variable)\n  :group 'php)\n\n(defconst php--re-namespace-pattern\n  (eval-when-compile\n    (php-create-regexp-for-classlike \"namespace\")))\n\n(defconst php--re-classlike-pattern\n  (eval-when-compile\n    (php-create-regexp-for-classlike (regexp-opt '(\"class\" \"interface\" \"trait\" \"enum\")))))\n\n(defvar php--analysis-syntax-table\n  (eval-when-compile\n    (let ((table (make-syntax-table)))\n      (c-populate-syntax-table table)\n      (modify-syntax-entry ?_ \"w\" table)\n      (modify-syntax-entry ?`  \"\\\"\"  table)\n      (modify-syntax-entry ?\\\" \"\\\"\"  table)\n      (modify-syntax-entry ?#  \"< b\" table)\n      (modify-syntax-entry ?\\n \"> b\" table)\n      table)))\n\n(defun php-get-current-element (re-pattern)\n  \"Return backward matched element by RE-PATTERN.\"\n  (save-excursion\n    (save-match-data\n      (when (re-search-backward re-pattern nil t)\n        (match-string-no-properties 1)))))\n\n(eval-and-compile\n  (if (eval-when-compile (fboundp 'thing-at-point-bounds-of-string-at-point))\n      (defalias 'php--thing-at-point-bounds-of-string-at-point #'thing-at-point-bounds-of-string-at-point)\n    ;; Copyright (C) 1991-1998, 2000-2022 Free Software Foundation, Inc.\n    ;; Follows function is copied from Emacs 28's thingatpt.el.\n    ;; https://github.com/emacs-mirror/emacs/commit/2abf143f8185fced544c4f8d144ea710142d7a59\n    (defun php--thing-at-point-bounds-of-string-at-point ()\n      \"Return the bounds of the string at point.\nPrefer the enclosing string with fallback on sexp at point.\n\\[Internal function used by `bounds-of-thing-at-point'.]\"\n      (save-excursion\n        (let ((ppss (syntax-ppss)))\n          (if (nth 3 ppss)\n              ;; Inside the string\n              (ignore-errors\n                (goto-char (nth 8 ppss))\n                (cons (point) (progn (forward-sexp) (point))))\n            ;; At the beginning of the string\n            (if (eq (char-syntax (char-after)) ?\\\")\n                (let ((bound (bounds-of-thing-at-point 'sexp)))\n\t          (and bound\n\t               (<= (car bound) (point)) (< (point) (cdr bound))\n\t               bound))))))))\n  (if (eval-when-compile (fboundp 'c-end-of-token))\n      (defalias 'php--c-end-of-token #'c-end-of-token)\n    ;; Copyright (C) 1985, 1987, 1992-2022 Free Software Foundation, Inc.\n    ;; Follows function is copied from Emacs 27's cc-engine.el.\n    ;; https://emba.gnu.org/emacs/emacs/-/commit/95fb826dc58965eac287c0826831352edf2e56f7\n    (defun php--c-end-of-token (&optional back-limit)\n      ;; Move to the end of the token we're just before or in the middle of.\n      ;; BACK-LIMIT may be used to bound the backward search; if given it's\n      ;; assumed to be at the boundary between two tokens.  Return non-nil if the\n      ;; point is moved, nil otherwise.\n      ;;\n      ;; This function might do hidden buffer changes.\n      (let ((start (point)))\n        (cond ;; ((< (skip-syntax-backward \"w_\" (1- start)) 0)\n         ;;  (skip-syntax-forward \"w_\"))\n         ((> (skip-syntax-forward \"w_\") 0))\n         ((< (skip-syntax-backward \".()\" back-limit) 0)\n          (while (< (point) start)\n\t    (if (looking-at c-nonsymbol-token-regexp)\n\t        (goto-char (match-end 0))\n\t      ;; `c-nonsymbol-token-regexp' should always match since\n\t      ;; we've skipped backward over punctuation or paren\n\t      ;; syntax, but move forward in case it doesn't so that\n\t      ;; we don't leave point earlier than we started with.\n\t      (forward-char))))\n         (t (if (looking-at c-nonsymbol-token-regexp)\n\t        (goto-char (match-end 0)))))\n        (> (point) start)))))\n\n(defun php-leading-tokens (length)\n  \"Return a list of leading LENGTH tokens from cursor point.\n\nThe token list is lined up in the opposite side of the visual arrangement.\nThe order is reversed by calling as follows:\n     \\(nreverse \\(php-leading-tokens 3\\)\\)\"\n  (save-excursion\n    (save-match-data\n      (with-syntax-table php--analysis-syntax-table\n        (cl-loop\n         repeat length\n         do (progn\n              (forward-comment (- (point)))\n              (c-backward-token-2 1 nil))\n         collect\n         (cond\n          ((when-let* ((bounds (php--thing-at-point-bounds-of-string-at-point)))\n             (prog1 (buffer-substring-no-properties (car bounds) (cdr bounds))\n               (goto-char (car bounds)))))\n          ((looking-at php-re-token-symbols)\n           (prog1 (match-string-no-properties 0)\n             (goto-char (match-beginning 0))))\n          ((buffer-substring-no-properties (point)\n                                           (save-excursion (php--c-end-of-token) (point))))))))))\n\n(defun php-get-pattern ()\n  \"Find the pattern we want to complete.\n`find-tag-default' from GNU Emacs etags.el.\"\n  (car (php-leading-tokens 1)))\n\n;;; Provide support for Flymake so that users can see warnings and\n;;; errors in real-time as they write code.\n(defun php-flymake-php-init ()\n  \"PHP specific init-cleanup routines.\n\nThis is an alternative function of `flymake-php-init'.\nLook at the `php-executable' variable instead of the constant \\\"php\\\" command.\"\n  (let ((init (with-no-warnings (flymake-php-init))))\n    (setf (car init) php-executable)\n    init))\n\n(defconst php-re-detect-html-tag-aggressive\n  (eval-when-compile\n    (rx (or (: string-start (* (in space))\n               \"<!\"\n               (or \"DOCTYPE\" \"doctype\")\n               (+ (in space))\n               (or \"HTML\" \"html\"))\n            (: (or line-start\n                   (: \"<\" (? \"/\")\n                      (* (in space)) (+ (in alpha \"-\")) (* (in space)) \">\"))\n               (: \"<\" (* (in space)) (+ (in alpha \"-\")) (* (in space)) \">\"))))))\n\n(defconst php-re-detect-html-tag-default\n  (eval-when-compile\n    (rx (or (: string-start (* (in space))\n               \"<!\"\n               (or \"DOCTYPE\" \"doctype\")\n               (+ (in space))\n               (or \"HTML\" \"html\"))\n            (: line-start\n               (: \"<\" (* (in space)) (+ (in alpha \"-\")) (* (in space)) \">\"))))))\n\n(defcustom php-re-detect-html-tag 'php-re-detect-html-tag-default\n  \"Regexp pattern variable-name of HTML detection.\"\n  :group 'php\n  :tag \"PHP Re Detect HTML Tag\"\n  :type '(choice (const :tag \"Default pattern\" php-re-detect-html-tag-default)\n                 (const :tag \"Aggressive pattern\" php-re-detect-html-tag-aggressive)\n                 (variable :tag \"Variable name of RegExp pattern\")))\n\n(defsubst php-re-detect-html-tag ()\n  \"Return RegExp pattern for HTML detection.\"\n  (if (symbolp php-re-detect-html-tag)\n      (symbol-value php-re-detect-html-tag)\n    php-re-detect-html-tag))\n\n(defun php-buffer-has-html-tag ()\n  \"Return position of HTML tag or NIL in current buffer.\"\n  (save-excursion\n    (save-restriction\n      (widen)\n      (goto-char (point-min))\n      (save-match-data\n        (re-search-forward (php-re-detect-html-tag) nil t)))))\n\n(defun php-derivation-major-mode ()\n  \"Return major mode for PHP file by file-name and its content.\"\n  (let ((mode (assoc-default buffer-file-name\n                             php-template-mode-alist\n                             #'string-match-p))\n        type)\n    (when (and (null mode) buffer-file-name\n               php-project-php-file-as-template)\n      (setq type (php-project-get-file-html-template-type buffer-file-name))\n      (cond\n       ((eq t type) (setq mode php-html-template-major-mode))\n       ((eq 'auto type)\n        (when (php-buffer-has-html-tag)\n          (setq mode php-html-template-major-mode)))))\n    (when (and mode (not (fboundp mode)))\n      (if (string-match-p \"\\\\.blade\\\\.\" buffer-file-name)\n          (warn \"php-mode is NOT support blade template. %s\"\n                \"Please install `web-mode' package\")\n        (setq mode nil)))\n    (or mode php-default-major-mode)))\n\n;;;###autoload\n(define-derived-mode php-base-mode prog-mode \"PHP\"\n  \"Generic major mode for editing PHP.\n\nThis mode is intended to be inherited by concrete major modes.\nCurrently there are `php-mode' and `php-ts-mode'.\"\n  :group 'php\n  nil)\n\n;;;###autoload\n(defun php-mode-maybe ()\n  \"Select PHP mode or other major mode.\"\n  (interactive)\n  (run-hooks php-mode-maybe-hook)\n  (funcall (php-derivation-major-mode)))\n\n;;;###autoload\n(defun php-current-class ()\n  \"Insert current class name if cursor in class context.\"\n  (interactive)\n  (when-let* ((matched (php-get-current-element php--re-classlike-pattern)))\n    (insert (concat matched php-class-suffix-when-insert))))\n\n;;;###autoload\n(defun php-current-namespace ()\n  \"Insert current namespace if cursor in namespace context.\"\n  (interactive)\n  (when-let* ((matched (php-get-current-element php--re-namespace-pattern)))\n    (insert (concat matched php-namespace-suffix-when-insert))))\n\n;;;###autoload\n(defun php-copyit-fqsen ()\n  \"Copy/kill class/method FQSEN.\"\n  (interactive)\n  (let ((namespace (or (php-get-current-element php--re-namespace-pattern) \"\"))\n        (class     (or (php-get-current-element php--re-classlike-pattern) \"\"))\n        (namedfunc (php-get-current-element php-beginning-of-defun-regexp)))\n    (kill-new (concat (if (string= namespace \"\") \"\" namespace)\n                      (if (string= class \"\") \"\" (concat \"\\\\\" class \"::\"))\n                      (if (string= namedfunc \"\") \"\" (concat namedfunc \"()\"))))))\n\n(defun php-topsy-beginning-of-defun-with-class ()\n  \"Return function signature and class name string for header line in topsy.\n\nYou can add the function to topsy with the code below:\n\n    (add-to-list \\\\='topsy-mode-functions\n                 \\\\='(php-mode . php-topsy-beginning-of-defun-with-class))\"\n  (save-excursion\n    (goto-char (window-start))\n    (mapconcat\n     #'identity\n     (append\n      (save-match-data\n        (save-excursion\n          (when (re-search-backward php--re-classlike-pattern nil t)\n            (font-lock-ensure (point) (line-end-position))\n            (list (string-trim (buffer-substring (point) (line-end-position)))))))\n      (progn\n        (beginning-of-defun)\n        (font-lock-ensure (point) (line-end-position))\n        (list (string-trim\n               (replace-regexp-in-string\n                (eval-when-compile (rx bos \"<?php\"))\n                \"\"\n                (buffer-substring (point) (line-end-position)))))))\n     php-topsy-separator)))\n\n;;;###autoload\n(defun php-run-builtin-web-server (router-or-dir hostname port &optional document-root)\n  \"Run PHP Built-in web server.\n\n`ROUTER-OR-DIR': Path to router PHP script or Document root.\n`HOSTNAME': Hostname or IP address of Built-in web server.\n`PORT': Port number of Built-in web server.\n`DOCUMENT-ROOT': Path to Document root.\n\nWhen `DOCUMENT-ROOT' is NIL, the document root is obtained from `ROUTER-OR-DIR'.\"\n  (interactive\n   (let ((insert-default-directory t)\n         (d-o-r (read-file-name \"Document root or Script: \" default-directory)))\n     (list\n      (expand-file-name d-o-r)\n      (read-string \"Hostname: \" \"0.0.0.0\")\n      (read-number \"Port: \" php-default-builtin-web-server-port)\n      (if (file-directory-p d-o-r)\n          nil\n        (let ((root-input (expand-file-name\n                           (read-file-name \"Document root: \" (directory-file-name d-o-r)))))\n          (file-name-directory\n           (if (file-directory-p root-input)\n               root-input\n             (directory-file-name root-input))))))))\n  (let* ((default-directory\n           (or document-root\n               (if (file-directory-p router-or-dir)\n                   router-or-dir\n                 (directory-file-name router-or-dir))))\n         (short-dirname (abbreviate-file-name default-directory))\n         (short-filename (abbreviate-file-name router-or-dir))\n         (buf-name (format \"php -S %s:%s -t %s %s\"\n                           hostname\n                           port\n                           short-dirname\n                           (if document-root short-filename \"\")))\n         (args (delq\n                nil\n                (list \"-S\"\n                      (format \"%s:%d\" hostname port)\n                      \"-t\"\n                      default-directory\n                      (when document-root router-or-dir)))))\n    (message \"Run PHP built-in server: %s\" buf-name)\n    (apply #'make-comint buf-name php-executable nil args)\n    (funcall\n     (if (called-interactively-p 'interactive) #'display-buffer #'get-buffer)\n     (format \"*%s*\" buf-name))))\n\n(defun php-ini ()\n  \"Get `php --ini' output buffer.\"\n  (interactive)\n  (let ((buffer (get-buffer-create \" *php --ini*\")))\n    (with-current-buffer buffer\n      (view-mode -1)\n      (read-only-mode -1)\n      (erase-buffer)\n      (shell-command (concat php-executable \" --ini\") buffer)\n      (view-mode +1))\n    (if (called-interactively-p 'interactive)\n        (pop-to-buffer buffer)\n      buffer)))\n\n;;;###autoload\n(defun php-find-system-php-ini-file (&optional file)\n  \"Find php.ini FILE by `php --ini'.\"\n  (interactive\n   (list\n    (let* ((default-directory (expand-file-name \"~\"))\n           (buffer (php-ini))\n           (path (with-current-buffer buffer\n                   (goto-char (point-min))\n                   (save-match-data\n                     (when (re-search-forward \": \\\\(.+?\\\\)$\" nil nil)\n                       (match-string 1))))))\n      (when (or (null path) (not (file-directory-p path)))\n        (when (called-interactively-p 'interactive)\n          (pop-to-buffer buffer))\n        (user-error \"Failed get path to PHP ini files directory\"))\n      (read-file-name \"Find php.ini file: \"\n                      (concat (expand-file-name path) \"/\")\n                      nil nil nil\n                      #'file-exists-p))))\n  (find-file file))\n\n\n(defun php-phpdbg-disassemble-file (file)\n  \"Read PHP FILE and print opcodes.\"\n  (interactive (list (if (or buffer-file-name (zerop (prefix-numeric-value current-prefix-arg)))\n                         buffer-file-name\n                       (expand-file-name\n                        (read-file-name \"Select PHP file: \" default-directory buffer-file-name)))))\n  (let ((args `(,@php-phpdbg-executable \"-dopcache.enable_cli=1\" \"-p*\" ,file)))\n    (compile (mapconcat #'shell-quote-argument args \" \"))))\n\n(defun php-parse-file (file)\n  \"Parse PHP FILE and print node tree.\"\n  (interactive (list (if (or buffer-file-name (zerop (prefix-numeric-value current-prefix-arg)))\n                         buffer-file-name\n                       (expand-file-name\n                        (read-file-name \"Select PHP file: \" default-directory buffer-file-name)))))\n  (let* ((project-dir (php-project-get-root-dir))\n         (executable (or php-php-parse-executabe\n                         (file-executable-p (expand-file-name \"vendor/bin/php-parse\" project-dir))\n                         (executable-find \"php-parse\")\n                         (user-error \"`php-parse' command not found\")))\n         (args `(,@(if (listp executable) executable (list executable)) ,file)))\n    (compile (mapconcat #'shell-quote-argument args \" \"))))\n\n(provide 'php)\n;;; php.el ends here\n"
  },
  {
    "path": "script/README.md",
    "content": "\n# Maintenance script for PHP Mode\n\nThese scripts are provided for maintenance of PHP Mode.\n\n## Extract PHP Functions\n\nThis script extract PHP function names from <http://doc.php.net/downloads/json/php_manual_en.json>.\n\n### Usage\n\n```\nUsage:\n\t./script/extract_functions.php count < php_manual_en.json\n\t./script/extract_functions.php modules < php_manual_en.json\n\t./script/extract_functions.php functions < php_manual_en.json > result.json\n\t./script/extract_functions.php functions-sexp < php_manual_en.json > result.el\n```\n\n### Data\n\nA pattern for grouping function modules by function-id is written in `data/module_id_prefixes.php`.\n\n * All entries are combined as prefix matching patterns\n * The meanings of `.` and `\\.` (matches) in the regular expression are swapped\n   * `\\.` matches any one character\n   * `.` matches only `\".\"`\n * An alphanumeric-terminated entry requires an exact match\n   * Other entries require a [`\\b`(word boundary)](https://www.php.net/manual/regexp.reference.escape.php) at the end\n\n```php\nreturn [\n    'apache' => [\n        'function.apache-', // matches all \"apache-\" prefixed IDs\n        'function.virtual', // matches only \"function.virtual\"\n    ],\n    'bcmath' => [\n        'function.bc\\.+',   // matches \"function.bcadd\", \"function.bccomp\", ...etc\n    ],\n```\n"
  },
  {
    "path": "script/data/module_id_prefixes.php",
    "content": "<?php\n\n/**\n * Classify function modules by function-id\n *\n * @copyright 2023 Friends of Emacs-PHP development\n * @author USAMI Kenta <tadsan@zonu.me>\n * @license FSFAP https://spdx.org/licenses/FSFAP.html\n */\n\n// Copying and distribution of this file, with or without modification,\n// are permitted in any medium without royalty provided the copyright\n// notice and this notice are preserved.  This file is offered as-is,\n// without any warranty.\n\nreturn [\n    'apache' => [\n        'function.apache-',\n        'function.virtual',\n    ],\n    'apcu' => [\n        'function.apcu-',\n    ],\n    'bcmath' => [\n        'function.bc\\.+',\n    ],\n    'bzip2' => [\n        'function.bz\\.+',\n    ],\n    'calendar' => [\n        'function.cal-',\n        'function.easter-date',\n        'function.easter-days',\n        'function.frenchtojd',\n        'function.gregoriantojd',\n        'function.jddayofweek',\n        'function.jdmonthname',\n        'function.jdtofrench',\n        'function.jdtogregorian',\n        'function.jdtojewish',\n        'function.jdtojulian',\n        'function.jdtounix',\n        'function.jewishtojd',\n        'function.unixtojd',\n    ],\n    'commonmark' => [\n        'function.commonmark-',\n    ],\n    'com_dotnet' => [\n        'function.com-',\n        'function.variant-',\n    ],\n    'componere' => [\n        'componere.',\n    ],\n    'core' => [\n        'function.abs',\n        'function.acos',\n        'function.acosh',\n        'function.addcslashes',\n        'function.addslashes',\n        'function.array-',\n        'function.arsort',\n        'function.asin',\n        'function.asinh',\n        'function.asort',\n        'function.assert-options',\n        'function.atan',\n        'function.atan2',\n        'function.atanh',\n        'function.base-convert',\n        'function.base64-',\n        'function.basename',\n        'function.bin2hex',\n        'function.bindec',\n        'function.boolval',\n        'function.call-user-func',\n        'function.call-user-func-array',\n        'function.ceil',\n        'function.chdir',\n        'function.checkdate',\n        'function.checkdnsrr',\n        'function.chgrp',\n        'function.chmod',\n        'function.chop',\n        'function.chown',\n        'function.chr',\n        'function.chroot',\n        'function.chunk-split',\n        'function.class-alias',\n        'function.class-exists',\n        'function.class-implements',\n        'function.class-parents',\n        'function.class-uses',\n        'function.clearstatcache',\n        'function.cli-',\n        'function.closedir',\n        'function.closelog',\n        'function.compact',\n        'function.connection-',\n        'function.constant',\n        'function.convert-cyr-string',\n        'function.convert-uudecode',\n        'function.convert-uuencode',\n        'function.copy',\n        'function.cos',\n        'function.cosh',\n        'function.count',\n        'function.count-chars',\n        'function.crc32',\n        'function.create-function',\n        'function.crypt',\n        'function.ctype-',\n        'function.current',\n        'function.date',\n        'function.date-',\n        'function.debug-',\n        'function.decbin',\n        'function.dechex',\n        'function.decoct',\n        'function.define',\n        'function.defined',\n        'function.deg2rad',\n        'function.delete',\n        'function.die',\n        'function.dir',\n        'function.dirname',\n        'function.disk-',\n        'function.diskfreespace',\n        'function.dl',\n        'function.dns-check-record',\n        'function.dns-get-mx',\n        'function.dns-get-record',\n        'function.doubleval',\n        'function.each',\n        'function.enum-exists',\n        'function.error-',\n        'function.escapeshellarg',\n        'function.escapeshellcmd',\n        'function.eval',\n        'function.exec',\n        'function.exit',\n        'function.exp',\n        'function.explode',\n        'function.expm1',\n        'function.extension-loaded',\n        'function.extract',\n        'function.fastcgi-',\n        'function.fclose',\n        'function.fdatasync',\n        'function.fdiv',\n        'function.feof',\n        'function.fflush',\n        'function.fgetc',\n        'function.fgetcsv',\n        'function.fgets',\n        'function.fgetss',\n        'function.file',\n        'function.file\\.+',\n        'function.filter-',\n        'function.finfo-',\n        'function.floatval',\n        'function.flock',\n        'function.floor',\n        'function.flush',\n        'function.fmod',\n        'function.fnmatch',\n        'function.fopen',\n        'function.forward-static-call',\n        'function.forward-static-call-array',\n        'function.fpassthru',\n        'function.fprintf',\n        'function.fputcsv',\n        'function.fputs',\n        'function.fread',\n        'function.fscanf',\n        'function.fseek',\n        'function.fsockopen',\n        'function.fstat',\n        'function.fsync',\n        'function.ftell',\n        'function.ftruncate',\n        'function.func-get-arg',\n        'function.func-get-args',\n        'function.func-num-args',\n        'function.function-exists',\n        'function.fwrite',\n        'function.gc-',\n        'function.get-',\n        'function.getallheaders',\n        'function.getcwd',\n        'function.getdate',\n        'function.getenv',\n        'function.gethostbyaddr',\n        'function.gethostbyname',\n        'function.gethostbynamel',\n        'function.gethostname',\n        'function.getlastmod',\n        'function.getmxrr',\n        'function.getmygid',\n        'function.getmyinode',\n        'function.getmypid',\n        'function.getmyuid',\n        'function.getopt',\n        'function.getprotobyname',\n        'function.getprotobynumber',\n        'function.getrandmax',\n        'function.getrusage',\n        'function.getservbyname',\n        'function.getservbyport',\n        'function.gettimeofday',\n        'function.gettype',\n        'function.glob',\n        'function.gmdate',\n        'function.gmmktime',\n        'function.gmstrftime',\n        'function.hash',\n        'function.hash-',\n        'function.header',\n        'function.header-register-callback',\n        'function.header-remove',\n        'function.headers-list',\n        'function.headers-sent',\n        'function.hebrev',\n        'function.hebrevc',\n        'function.hex2bin',\n        'function.hexdec',\n        'function.highlight-file',\n        'function.highlight-string',\n        'function.hrtime',\n        'function.html-entity-decode',\n        'function.htmlentities',\n        'function.htmlspecialchars',\n        'function.htmlspecialchars-decode',\n        'function.http-build-query',\n        'function.http-response-code',\n        'function.hypot',\n        'function.idate',\n        'function.ignore-user-abort',\n        'function.implode',\n        'function.in-array',\n        'function.inet-',\n        'function.ini-',\n        'function.intdiv',\n        'function.interface-exists',\n        'function.intval',\n        'function.ip2long',\n        'function.is-a',\n        'function.is-array',\n        'function.is-bool',\n        'function.is-callable',\n        'function.is-countable',\n        'function.is-dir',\n        'function.is-double',\n        'function.is-executable',\n        'function.is-file',\n        'function.is-finite',\n        'function.is-float',\n        'function.is-infinite',\n        'function.is-int',\n        'function.is-integer',\n        'function.is-iterable',\n        'function.is-link',\n        'function.is-long',\n        'function.is-nan',\n        'function.is-null',\n        'function.is-numeric',\n        'function.is-object',\n        'function.is-readable',\n        'function.is-resource',\n        'function.is-scalar',\n        'function.is-string',\n        'function.is-subclass-of',\n        'function.is-uploaded-file',\n        'function.is-writable',\n        'function.is-writeable',\n        'function.iterator-',\n        'function.join',\n        'function.json-',\n        'function.juliantojd',\n        'function.key',\n        'function.key-exists',\n        'function.krsort',\n        'function.ksort',\n        'function.lcfirst',\n        'function.lcg-value',\n        'function.lchgrp',\n        'function.lchown',\n        'function.levenshtein',\n        'function.link',\n        'function.linkinfo',\n        'function.list',\n        'function.localeconv',\n        'function.localtime',\n        'function.log',\n        'function.log10',\n        'function.log1p',\n        'function.long2ip',\n        'function.lstat',\n        'function.ltrim',\n        'function.mail',\n        'function.max',\n        'function.md5',\n        'function.md5-file',\n        'function.memory-',\n        'function.metaphone',\n        'function.method-exists',\n        'function.microtime',\n        'function.mime-content-type',\n        'function.min',\n        'function.mkdir',\n        'function.mktime',\n        'function.money-format',\n        'function.move-uploaded-file',\n        'function.mt-',\n        'function.natcasesort',\n        'function.natsort',\n        'function.net-get-interfaces',\n        'function.next',\n        'function.nl-langinfo',\n        'function.nl2br',\n        'function.number-format',\n        'function.ob-',\n        'function.octdec',\n        'function.opcache-',\n        'function.opendir',\n        'function.openlog',\n        'function.ord',\n        'function.output-',\n        'function.pack',\n        'function.parse-ini-',\n        'function.parse-str',\n        'function.parse-url',\n        'function.passthru',\n        'function.password-',\n        'function.pathinfo',\n        'function.pclose',\n        'function.pfsockopen',\n        'function.php-ini-',\n        'function.php-sapi-name',\n        'function.php-strip-whitespace',\n        'function.php-uname',\n        'function.phpcredits',\n        'function.phpdbg-',\n        'function.phpinfo',\n        'function.phpversion',\n        'function.pi',\n        'function.popen',\n        'function.pos',\n        'function.pow',\n        'function.preg-',\n        'function.prev',\n        'function.print-r',\n        'function.printf',\n        'function.proc-',\n        'function.property-exists',\n        'function.putenv',\n        'function.quoted-printable-',\n        'function.quotemeta',\n        'function.rad2deg',\n        'function.rand',\n        'function.random-',\n        'function.range',\n        'function.rawurldecode',\n        'function.rawurlencode',\n        'function.readdir',\n        'function.readfile',\n        'function.readlink',\n        'function.realpath',\n        'function.realpath-',\n        'function.register-shutdown-function',\n        'function.register-tick-function',\n        'function.rename',\n        'function.reset',\n        'function.restore-',\n        'function.rewind',\n        'function.rewinddir',\n        'function.rmdir',\n        'function.round',\n        'function.rsort',\n        'function.rtrim',\n        'function.sapi-',\n        'function.scandir',\n        'function.seaslog-get-author',\n        'function.seaslog-get-version',\n        'function.serialize',\n        'function.session-',\n        'function.set-',\n        'function.setcookie',\n        'function.setlocale',\n        'function.setrawcookie',\n        'function.settype',\n        'function.sha1',\n        'function.sha1-file',\n        'function.shell-exec',\n        'function.show-source',\n        'function.shuffle',\n        'function.similar-text',\n        'function.sin',\n        'function.sinh',\n        'function.sizeof',\n        'function.sleep',\n        'function.sort',\n        'function.soundex',\n        'function.spl-',\n        'function.sprintf',\n        'function.sqrt',\n        'function.srand',\n        'function.sscanf',\n        'function.stat',\n        'function.str-',\n        'function.strcasecmp',\n        'function.strchr',\n        'function.strcmp',\n        'function.strcoll',\n        'function.strcspn',\n        'function.stream-',\n        'function.strftime',\n        'function.strip-tags',\n        'function.stripcslashes',\n        'function.stripos',\n        'function.stripslashes',\n        'function.stristr',\n        'function.strlen',\n        'function.strnatcasecmp',\n        'function.strnatcmp',\n        'function.strncasecmp',\n        'function.strncmp',\n        'function.strpbrk',\n        'function.strpos',\n        'function.strptime',\n        'function.strrchr',\n        'function.strrev',\n        'function.strripos',\n        'function.strrpos',\n        'function.strspn',\n        'function.strstr',\n        'function.strtok',\n        'function.strtolower',\n        'function.strtotime',\n        'function.strtoupper',\n        'function.strtr',\n        'function.strval',\n        'function.substr',\n        'function.substr-compare',\n        'function.substr-count',\n        'function.substr-replace',\n        'function.symlink',\n        'function.sys-get-temp-dir',\n        'function.sys-getloadavg',\n        'function.syslog',\n        'function.system',\n        'function.tan',\n        'function.tanh',\n        'function.tempnam',\n        'function.time',\n        'function.time-',\n        'function.timezone-',\n        'function.tmpfile',\n        'function.token-get-all',\n        'function.token-name',\n        'function.touch',\n        'function.trait-exists',\n        'function.trigger-error',\n        'function.trim',\n        'function.uasort',\n        'function.ucfirst',\n        'function.ucwords',\n        'function.uksort',\n        'function.umask',\n        'function.uniqid',\n        'function.unlink',\n        'function.unpack',\n        'function.unregister-tick-function',\n        'function.unserialize',\n        'function.unset',\n        'function.urldecode',\n        'function.urlencode',\n        'function.user-error',\n        'function.usleep',\n        'function.usort',\n        'function.var-dump',\n        'function.var-export',\n        'function.version-compare',\n        'function.vfprintf',\n        'function.vprintf',\n        'function.vsprintf',\n        'function.wordwrap',\n        'function.zend-thread-id',\n        'function.zend-version',\n        'pdo.getavailabledrivers',\n    ],\n    'cubrid' => [\n        'function.cubrid-',\n    ],\n    'curl' => [\n        'curlfile.',\n        'function.curl-',\n        'function.curl_upkeep',\n    ],\n    'dba' => [\n        'function.dba-',\n    ],\n    'dbase' => [\n        'function.dbase-',\n    ],\n    'dio' => [\n        'function.dio-',\n    ],\n    'eio' => [\n        'function.eio-',\n    ],\n    'enchant' => [\n        'function.enchant-',\n    ],\n    'exif' => [\n        'function.exif-',\n        'function.read-exif-',\n    ],\n    'expect' => [\n        'function.expect-',\n    ],\n    'fann' => [\n        'function.fann-',\n    ],\n    'fdf' => [\n        'function.fdf-',\n    ],\n    'fpm' => [\n        'function.fpm-'\n    ],\n    'ftp' => [\n        'function.ftp-',\n    ],\n    'gearman' => [\n        'gearmanclient.',\n        'gearmantask.',\n    ],\n    'gettext' => [\n        'function.bind-textdomain-codeset',\n        'function.bindtextdomain',\n        'function.dcgettext',\n        'function.dcngettext',\n        'function.dgettext',\n        'function.dngettext',\n        'function.gettext',\n        'function.ngettext',\n        'function.textdomain',\n    ],\n    'gd' => [\n        'function.gd-',\n        'function.getimagesize',\n        'function.getimagesizefromstring',\n        'function.image\\.+',\n        'function.iptcembed',\n        'function.iptcparse',\n    ],\n    'gmp' => [\n        'function.gmp-',\n    ],\n    'geoip' => [\n        'function.geoip-',\n    ],\n    'gnupg' => [\n        'function.gnupg-',\n    ],\n    'ibase' => [\n        'function.fbird-',\n        'function.ibase-',\n    ],\n    'ibm_db2' => [\n        'function.db2-',\n    ],\n    'iconv' => [\n        'function.iconv',\n        'function.iconv-',\n    ],\n    'igbinary' => [\n        'function.igbinary-',\n    ],\n    'imap' => [\n        'function.imap-',\n    ],\n    'inotify' => [\n        'function.inotify-',\n    ],\n    'intl' => [\n        'collator.',\n        'function.grapheme-',\n        'function.idn-',\n        'function.intl-',\n        'intlcalendar.',\n        'intldateformatter.',\n        'intltimezone.',\n        'locale.',\n        'messageformatter.',\n        'normalizer.',\n        'numberformatter.',\n        'resourcebundle.',\n        'transliterator.',\n    ],\n    'language' => [\n        'function.array',\n        'function.assert',\n        'function.echo',\n        'function.empty',\n        'function.halt-compiler',\n        'function.isset',\n        'function.print',\n    ],\n    'ldap' => [\n        'function.ldap-',\n    ],\n    'libxml' => [\n        'function.libxml-',\n    ],\n    'lzf' => [\n        'function.lzf-',\n    ],\n    'mailparse' => [\n        'function.mailparse-',\n    ],\n    'mbstring' => [\n        'function.mb-',\n    ],\n    'memcache' => [\n        'function.memcache-',\n    ],\n    'mongodb' => [\n        'function.mongodb.',\n    ],\n    'mqseries' => [\n        'function.mqseries-',\n    ],\n    'mysqli' => [\n        'mysqli-',\n        'mysqli.',\n        'function.mysqli-',\n    ],\n    'mysql-obsolete' => [\n        'function.mysql-',\n    ],\n    'oauth' => [\n        'function.oauth-',\n    ],\n    'obsolete_7' => [\n        'function.autoload',\n        'function.end',\n        'function.ezmlm-hash',\n        'function.is-real',\n        'function.jpeg2wbmp',\n        'function.mcrypt-',\n        'function.mdecrypt-',\n        'function.png2wbmp',\n        'function.wddx-',\n    ],\n    'obsolete_8' => [\n        'function.mhash',\n        'function.mhash-',\n        'function.utf8-decode',\n        'function.utf8-encode',\n        'function.zip-',\n    ],\n    'oci8' => [\n        'function.oci\\.+',\n    ],\n    'odbc' => [\n        'function.odbc-',\n    ],\n    'openal' => [\n        'function.openal-',\n    ],\n    'openssl' => [\n        'function.openssl-',\n    ],\n    'parallel' => [\n        'parallel.',\n    ],\n    'pcntl' => [\n        'function.pcntl-',\n    ],\n    'pgsql' => [\n        'function.pg-',\n    ],\n    'posix' => [\n        'function.posix-',\n    ],\n    'ps' => [\n        'function.ps-',\n    ],\n    'pspell' => [\n        'function.pspell-',\n    ],\n    'radius' => [\n        'function.radius-',\n    ],\n    'rar' => [\n        'function.rar-',\n        'rararchive.',\n    ],\n    'readline' => [\n        'function.readline',\n        'function.readline-',\n    ],\n    'recode' => [\n        'function.recode',\n        'function.recode-',\n    ],\n    'rnp' => [\n        'function.rnp-',\n    ],\n    'runkit7' => [\n        'function.runkit7-',\n    ],\n    'rpminfo' => [\n        'function.rpm\\.+',\n    ],\n    'rrd' => [\n        'function.rrd-',\n        'function.rrdc-',\n    ],\n    'scoutapm' => [\n        'function.scoutapm-',\n    ],\n    'shmop' => [\n        'function.shmop-',\n    ],\n    'simdjson' => [\n        'function.simdjson-'\n    ],\n    'simplexml' => [\n        'function.dom-import-simplexml',\n        'function.simplexml-',\n    ],\n    'sqlsrv' => [\n        'function.sqlsrv-',\n    ],\n    'smnp' => [\n        'function.snmp-',\n        'function.snmp2-',\n        'function.snmp3-',\n        'function.snmp\\.+',\n    ],\n    'sodium' => [\n        'function.sodium-',\n    ],\n    'soap' => [\n        'function.is-soap-fault',\n        'function.use-soap-error-handler',\n    ],\n    'socket' => [\n        'function.socket-',\n    ],\n    'solr' => [\n        'function.solr-',\n    ],\n    'ssdeep' => [\n        'function.ssdeep-',\n    ],\n    'ssh2' => [\n        'function.ssh2-',\n    ],\n    'stats' => [\n        'function.stats-',\n    ],\n    'stomp' => [\n        'function.stomp-',\n        'stomp.',\n    ],\n    'svn' => [\n        'function.svn-',\n    ],\n    'swoole' => [\n        'function.swoole-',\n        'swoole-server.',\n    ],\n    'sysvshm' => [\n        'function.ftok',\n        'function.sem-',\n        'function.shm-',\n        'function.msg-get-queue',\n        'function.msg-queue-exists',\n        'function.msg-receive',\n        'function.msg-remove-queue',\n        'function.msg-send',\n        'function.msg-set-queue',\n        'function.msg-stat-queue',\n    ],\n    'taint' => [\n        'function.is-tainted',\n        'function.taint',\n        'function.untaint',\n    ],\n    'tcpwrap' => [\n        'function.tcpwrap-',\n    ],\n    'tidy' => [\n        'function.tidy-',\n        'tidy.',\n    ],\n    'trader' => [\n        'function.trader-',\n    ],\n    'ui' => [\n        'function.ui-',\n    ],\n    'uopz' => [\n        'function.uopz-',\n    ],\n    'var_representation' => [\n        'function.var-representation',\n    ],\n    'win32service' => [\n        'function.win32-',\n    ],\n    'wincache' => [\n        'function.wincache-',\n    ],\n    'xattr' => [\n        'function.xattr-',\n    ],\n    'xdiff' => [\n        'function.xdiff-',\n    ],\n    'xhprof' => [\n        'function.xhprof-',\n    ],\n    'xml' => [\n        'function.xml-',\n    ],\n    'xmlrpc' => [\n        'function.xmlrpc-',\n    ],\n    'xmlwriter' => [\n        'xmlwriter.',\n    ],\n    'yaml' => [\n        'function.yaml-',\n    ],\n    'yaz' => [\n        'function.yaz-',\n    ],\n    'zlib' => [\n        'function.deflate-',\n        'function.gz\\.+',\n        'function.inflate-',\n        'function.readgzfile',\n        'function.zlib-',\n    ],\n    'zookeeper' => [\n        'function.zookeeper-',\n    ]\n];\n"
  },
  {
    "path": "script/extract_functions.php",
    "content": "#!/usr/bin/env php\n<?php\n\n/**\n * Extract PHP Functions\n *\n * @copyright 2023 Friends of Emacs-PHP development\n * @author USAMI Kenta <tadsan@zonu.me>\n * @license FSFAP https://spdx.org/licenses/FSFAP.html\n */\n\n// Copying and distribution of this file, with or without modification,\n// are permitted in any medium without royalty provided the copyright\n// notice and this notice are preserved.  This file is offered as-is,\n// without any warranty.\n\ndeclare(strict_types=1);\n\nerror_reporting(E_ALL);\n\n$functions = json_decode(stream_get_contents(STDIN), true);\n\n$command = $argv[0];\n$subcommand = $argv[1] ?? null;\n\n$subcommands = [\n    'count' => function (array $extracted) {\n        echo json_encode(array_map(count(...), $extracted), JSON_PRETTY_PRINT), PHP_EOL;\n    },\n    'modules' => function (array $extracted) {\n        echo implode(PHP_EOL, array_keys($extracted)), PHP_EOL;\n    },\n    'functions' => function (array $extracted) {\n        echo json_encode(array_map(array_keys(...), $extracted), JSON_PRETTY_PRINT), PHP_EOL;\n    },\n    'functions-txt' => function (array $extracted) {\n        foreach ($extracted as $functions) {\n            foreach ($functions as $name => $_) {\n                echo $name, PHP_EOL;\n            }\n        }\n    },\n    'functions-sexp' => function (array $extracted) {\n        echo \"  '(\";\n        foreach ($extracted as $module => $functions) {\n            echo \"\\n    ({$module}\";\n            //            ksort($functions);\n            foreach ($functions as $name => $function) {\n                $escaped_name = strtr($name, ['\\\\' => '\\\\\\\\']);\n                echo \"\\n     \\\"{$escaped_name}\\\"\";\n            }\n            echo \")\";\n        }\n        echo \")\";\n    },\n];\n\nif (!isset($subcommands[$subcommand])) {\n    $json_url = 'http://doc.php.net/downloads/json/php_manual_en.json';\n    fwrite(STDERR, implode(PHP_EOL, [\n        \"[Extract PHP Functions]\\n\",\n        \"This script extract PHP function names from <{$json_url}>.\\n\",\n        \"Usage:\",\n        \"\\t{$command} count < php_manual_en.json\",\n        \"\\t{$command} modules < php_manual_en.json\",\n        \"\\t{$command} functions < php_manual_en.json > result.json\",\n        \"\\t{$command} functions-sexp < php_manual_en.json > result.el\",\n        '',\n    ]));\n    exit(1);\n}\n\n$module_id_patterns = array_map(\n    fn($allowlist) => '/\\A(?:' . implode('|', array_map(\n        fn($preg) => strtr($preg, ['\\.' => '.', '.' => '\\.']) .\n            (preg_match('/[0-9a-z]\\z/', $preg) ? '\\z' : '\\b'),\n        $allowlist)\n    ) . ')/',\n    include __DIR__ . '/data/module_id_prefixes.php'\n);\n\n$extracted = [];\n\nforeach ($functions as $name => $function) {\n    if (str_contains($name, '::')) {\n        continue;\n    }\n\n    $module = get_module($function, $module_id_patterns);\n\n    if ($module === null) {\n        fwrite(STDERR, \"{$name}: {$function['id']}\\n\");\n    } else {\n        $extracted[$module][$name] = $function;\n    }\n}\n\nksort($extracted);\narray_walk($extracted, function (&$functions) {\n    ksort($functions);\n});\n\ncall_user_func($subcommands[$subcommand], $extracted);\n\n/**\n * @param array{id: non-empty-string} $function\n * @param array<non-empty-string, non-empty-string> $function\n */\nfunction get_module(array $function, array $patterns): ?string\n{\n    foreach ($patterns as $module => $pattern) {\n        if (preg_match($pattern, $function['id'])) {\n            return $module;\n        }\n    }\n\n    return null;\n}\n"
  },
  {
    "path": "script/module_id_prefixes.php",
    "content": "<?php\n\nreturn [\n    'apache' => [\n        'function.apache-',\n        'function.virtual',\n    ],\n    'apcu' => [\n        'function.apcu-',\n    ],\n    'bcmath' => [\n        'function.bc\\.+',\n    ],\n    'bzip2' => [\n        'function.bz\\.+',\n    ],\n    'commonmark' => [\n        'function.commonmark-',\n    ],\n    'com_dotnet' => [\n        'function.com-',\n        'function.variant-',\n    ],\n    'componere' => [\n        'componere.',\n    ],\n    'core' => [\n        'function.abs',\n        'function.acos',\n        'function.acosh',\n        'function.addcslashes',\n        'function.addslashes',\n        'function.array-',\n        'function.arsort',\n        'function.asin',\n        'function.asinh',\n        'function.asort',\n        'function.atan',\n        'function.atan2',\n        'function.atanh',\n        'function.base-convert',\n        'function.base64-',\n        'function.basename',\n        'function.bin2hex',\n        'function.bindec',\n        'function.boolval',\n        'function.cal-',\n        'function.call-user-func',\n        'function.call-user-func-array',\n        'function.ceil',\n        'function.chdir',\n        'function.checkdate',\n        'function.checkdnsrr',\n        'function.chgrp',\n        'function.chmod',\n        'function.chop',\n        'function.chown',\n        'function.chr',\n        'function.chroot',\n        'function.chunk-split',\n        'function.class-alias',\n        'function.class-exists',\n        'function.class-implements',\n        'function.class-parents',\n        'function.class-uses',\n        'function.clearstatcache',\n        'function.cli-',\n        'function.closedir',\n        'function.closelog',\n        'function.compact',\n        'function.connection-',\n        'function.constant',\n        'function.convert-cyr-string',\n        'function.convert-uudecode',\n        'function.convert-uuencode',\n        'function.copy',\n        'function.cos',\n        'function.cosh',\n        'function.count',\n        'function.count-chars',\n        'function.crc32',\n        'function.create-function',\n        'function.crypt',\n        'function.ctype-',\n        'function.current',\n        'function.date',\n        'function.debug-',\n        'function.decbin',\n        'function.dechex',\n        'function.decoct',\n        'function.define',\n        'function.defined',\n        'function.deg2rad',\n        'function.delete',\n        'function.die',\n        'function.dir',\n        'function.dirname',\n        'function.disk-',\n        'function.diskfreespace',\n        'function.dl',\n        'function.dns-check-record',\n        'function.dns-get-mx',\n        'function.dns-get-record',\n        'function.dom-import-simplexml',\n        'function.doubleval',\n        'function.each',\n        'function.easter-date',\n        'function.easter-days',\n        'function.enum-exists',\n        'function.error-',\n        'function.escapeshellarg',\n        'function.escapeshellcmd',\n        'function.eval',\n        'function.exec',\n        'function.exit',\n        'function.exp',\n        'function.explode',\n        'function.expm1',\n        'function.extension-loaded',\n        'function.extract',\n        'function.fastcgi-',\n        'function.fclose',\n        'function.fdatasync',\n        'function.fdiv',\n        'function.feof',\n        'function.fflush',\n        'function.fgetc',\n        'function.fgetcsv',\n        'function.fgets',\n        'function.fgetss',\n        'function.file',\n        'function.file\\.+',\n        'function.filter-',\n        'function.finfo-',\n        'function.floatval',\n        'function.flock',\n        'function.floor',\n        'function.flush',\n        'function.fmod',\n        'function.fnmatch',\n        'function.fopen',\n        'function.forward-static-call',\n        'function.forward-static-call-array',\n        'function.fpassthru',\n        'function.fprintf',\n        'function.fputcsv',\n        'function.fputs',\n        'function.fread',\n        'function.frenchtojd',\n        'function.fscanf',\n        'function.fseek',\n        'function.fsockopen',\n        'function.fstat',\n        'function.fsync',\n        'function.ftell',\n        'function.ftruncate',\n        'function.func-get-arg',\n        'function.func-get-args',\n        'function.func-num-args',\n        'function.function-exists',\n        'function.fwrite',\n        'function.gc-',\n        'function.get-',\n        'function.getallheaders',\n        'function.getcwd',\n        'function.getdate',\n        'function.getenv',\n        'function.gethostbyaddr',\n        'function.gethostbyname',\n        'function.gethostbynamel',\n        'function.gethostname',\n        'function.getlastmod',\n        'function.getmxrr',\n        'function.getmygid',\n        'function.getmyinode',\n        'function.getmypid',\n        'function.getmyuid',\n        'function.getopt',\n        'function.getprotobyname',\n        'function.getprotobynumber',\n        'function.getrandmax',\n        'function.getrusage',\n        'function.getservbyname',\n        'function.getservbyport',\n        'function.gettimeofday',\n        'function.gettype',\n        'function.glob',\n        'function.gmdate',\n        'function.gmmktime',\n        'function.gmstrftime',\n        'function.gregoriantojd',\n        'function.hash',\n        'function.header',\n        'function.header-register-callback',\n        'function.header-remove',\n        'function.headers-list',\n        'function.headers-sent',\n        'function.hebrev',\n        'function.hebrevc',\n        'function.hex2bin',\n        'function.hexdec',\n        'function.highlight-file',\n        'function.highlight-string',\n        'function.hrtime',\n        'function.html-entity-decode',\n        'function.htmlentities',\n        'function.htmlspecialchars',\n        'function.htmlspecialchars-decode',\n        'function.http-build-query',\n        'function.http-response-code',\n        'function.hypot',\n        'function.idate',\n        'function.ignore-user-abort',\n        'function.implode',\n        'function.in-array',\n        'function.inet-',\n        'function.ini-',\n        'function.intdiv',\n        'function.interface-exists',\n        'function.intval',\n        'function.ip2long',\n        'function.is-a',\n        'function.is-array',\n        'function.is-bool',\n        'function.is-callable',\n        'function.is-countable',\n        'function.is-dir',\n        'function.is-double',\n        'function.is-executable',\n        'function.is-file',\n        'function.is-finite',\n        'function.is-float',\n        'function.is-infinite',\n        'function.is-int',\n        'function.is-integer',\n        'function.is-iterable',\n        'function.is-link',\n        'function.is-long',\n        'function.is-nan',\n        'function.is-null',\n        'function.is-numeric',\n        'function.is-object',\n        'function.is-readable',\n        'function.is-resource',\n        'function.is-scalar',\n        'function.is-string',\n        'function.is-subclass-of',\n        'function.is-uploaded-file',\n        'function.is-writable',\n        'function.is-writeable',\n        'function.iterator-',\n        'function.jddayofweek',\n        'function.jdmonthname',\n        'function.jdtofrench',\n        'function.jdtogregorian',\n        'function.jdtojewish',\n        'function.jdtojulian',\n        'function.jdtounix',\n        'function.jewishtojd',\n        'function.join',\n        'function.json-',\n        'function.juliantojd',\n        'function.key',\n        'function.key-exists',\n        'function.krsort',\n        'function.ksort',\n        'function.lcfirst',\n        'function.lcg-value',\n        'function.lchgrp',\n        'function.lchown',\n        'function.levenshtein',\n        'function.libxml-',\n        'function.link',\n        'function.linkinfo',\n        'function.list',\n        'function.localeconv',\n        'function.localtime',\n        'function.log',\n        'function.log10',\n        'function.log1p',\n        'function.long2ip',\n        'function.lstat',\n        'function.ltrim',\n        'function.mail',\n        'function.max',\n        'function.md5',\n        'function.md5-file',\n        'function.memory-',\n        'function.metaphone',\n        'function.method-exists',\n        'function.microtime',\n        'function.mime-content-type',\n        'function.min',\n        'function.mkdir',\n        'function.mktime',\n        'function.money-format',\n        'function.move-uploaded-file',\n        'function.mt-',\n        'function.natcasesort',\n        'function.natsort',\n        'function.net-get-interfaces',\n        'function.next',\n        'function.nl-langinfo',\n        'function.nl2br',\n        'function.number-format',\n        'function.ob-',\n        'function.octdec',\n        'function.opcache-',\n        'function.opendir',\n        'function.openlog',\n        'function.ord',\n        'function.output-',\n        'function.pack',\n        'function.parse-ini-',\n        'function.parse-str',\n        'function.parse-url',\n        'function.passthru',\n        'function.password-',\n        'function.pathinfo',\n        'function.pclose',\n        'function.pfsockopen',\n        'function.php-ini-',\n        'function.php-sapi-name',\n        'function.php-strip-whitespace',\n        'function.php-uname',\n        'function.phpcredits',\n        'function.phpdbg-',\n        'function.phpinfo',\n        'function.phpversion',\n        'function.pi',\n        'function.popen',\n        'function.pos',\n        'function.posix-',\n        'function.pow',\n        'function.preg-',\n        'function.prev',\n        'function.print-r',\n        'function.printf',\n        'function.proc-',\n        'function.property-exists',\n        'function.putenv',\n        'function.quoted-printable-',\n        'function.quotemeta',\n        'function.rad2deg',\n        'function.rand',\n        'function.random-',\n        'function.range',\n        'function.rawurldecode',\n        'function.rawurlencode',\n        'function.readdir',\n        'function.readfile',\n        'function.readlink',\n        'function.realpath',\n        'function.register-shutdown-function',\n        'function.register-tick-function',\n        'function.rename',\n        'function.reset',\n        'function.restore-',\n        'function.rewind',\n        'function.rewinddir',\n        'function.rmdir',\n        'function.round',\n        'function.rsort',\n        'function.rtrim',\n        'function.sapi-',\n        'function.scandir',\n        'function.seaslog-get-author',\n        'function.seaslog-get-version',\n        'function.serialize',\n        'function.session-',\n        'function.set-',\n        'function.setcookie',\n        'function.setlocale',\n        'function.setrawcookie',\n        'function.settype',\n        'function.sha1',\n        'function.sha1-file',\n        'function.shell-exec',\n        'function.show-source',\n        'function.shuffle',\n        'function.similar-text',\n        'function.simplexml-',\n        'function.sin',\n        'function.sinh',\n        'function.sizeof',\n        'function.sleep',\n        'function.socket-',\n        'function.sodium-',\n        'function.sort',\n        'function.soundex',\n        'function.spl-',\n        'function.sprintf',\n        'function.sqrt',\n        'function.srand',\n        'function.sscanf',\n        'function.stat',\n        'function.str-',\n        'function.strcasecmp',\n        'function.strchr',\n        'function.strcmp',\n        'function.strcoll',\n        'function.strcspn',\n        'function.stream-',\n        'function.strftime',\n        'function.strip-tags',\n        'function.stripcslashes',\n        'function.stripos',\n        'function.stripslashes',\n        'function.stristr',\n        'function.strlen',\n        'function.strnatcasecmp',\n        'function.strnatcmp',\n        'function.strncasecmp',\n        'function.strncmp',\n        'function.strpbrk',\n        'function.strpos',\n        'function.strptime',\n        'function.strrchr',\n        'function.strrev',\n        'function.strripos',\n        'function.strrpos',\n        'function.strspn',\n        'function.strstr',\n        'function.strtok',\n        'function.strtolower',\n        'function.strtotime',\n        'function.strtoupper',\n        'function.strtr',\n        'function.strval',\n        'function.substr',\n        'function.substr-compare',\n        'function.substr-count',\n        'function.substr-replace',\n        'function.symlink',\n        'function.sys-get-temp-dir',\n        'function.sys-getloadavg',\n        'function.syslog',\n        'function.system',\n        'function.tan',\n        'function.tanh',\n        'function.tempnam',\n        'function.time',\n        'function.timezone-',\n        'function.tmpfile',\n        'function.token-get-all',\n        'function.token-name',\n        'function.touch',\n        'function.trait-exists',\n        'function.trigger-error',\n        'function.trim',\n        'function.uasort',\n        'function.ucfirst',\n        'function.ucwords',\n        'function.uksort',\n        'function.umask',\n        'function.uniqid',\n        'function.unixtojd',\n        'function.unlink',\n        'function.unpack',\n        'function.unregister-tick-function',\n        'function.unserialize',\n        'function.unset',\n        'function.urldecode',\n        'function.urlencode',\n        'function.user-error',\n        'function.usleep',\n        'function.usort',\n        'function.var-dump',\n        'function.var-export',\n        'function.version-compare',\n        'function.vfprintf',\n        'function.vprintf',\n        'function.vsprintf',\n        'function.wordwrap',\n        'function.xml-',\n        'function.zend-thread-id',\n        'function.zend-version',\n        'pdo.getavailabledrivers',\n        'xmlwriter.',\n    ],\n    'cubrid' => [\n        'function.cubrid-',\n    ],\n    'curl' => [\n        'curlfile.',\n        'function.curl-',\n    ],\n    'dba' => [\n        'function.dba-',\n    ],\n    'dbase' => [\n        'function.dbase-',\n    ],\n    'dio' => [\n        'function.dio-',\n    ],\n    'eio' => [\n        'function.eio-',\n    ],\n    'enchant' => [\n        'function.enchant-',\n    ],\n    'exif' => [\n        'function.exif-',\n        'function.read-exif-',\n    ],\n    'expect' => [\n        'function.expect-',\n    ],\n    'fann' => [\n        'function.fann-',\n    ],\n    'fdf' => [\n        'function.fdf-',\n    ],\n    'fpm' => [\n        'function.fpm-'\n    ],\n    'ftp' => [\n        'function.ftp-',\n    ],\n    'gearman' => [\n        'gearmanclient.',\n        'gearmantask.',\n    ],\n    'gettext' => [\n        'function.bind-textdomain-codeset',\n        'function.bindtextdomain',\n        'function.dcgettext',\n        'function.dcngettext',\n        'function.dgettext',\n        'function.dngettext',\n        'function.gettext',\n        'function.ngettext',\n        'function.textdomain',\n    ],\n    'gd' => [\n        'function.gd-',\n        'function.getimagesize',\n        'function.getimagesizefromstring',\n        'function.image\\.+',\n        'function.iptcembed',\n        'function.iptcparse',\n    ],\n    'gmp' => [\n        'function.gmp-',\n    ],\n    'geoip' => [\n        'function.geoip-',\n    ],\n    'gnupg' => [\n        'function.gnupg-',\n    ],\n    'ibase' => [\n        'function.fbird-',\n        'function.ibase-',\n    ],\n    'ibm_db2' => [\n        'function.db2-',\n    ],\n    'iconv' => [\n        'function.iconv',\n    ],\n    'igbinary' => [\n        'function.igbinary-',\n    ],\n    'imap' => [\n        'function.imap-',\n    ],\n    'inotify' => [\n        'function.inotify-',\n    ],\n    'intl' => [\n        'collator.',\n        'function.grapheme-',\n        'function.idn-',\n        'function.intl-',\n        'intlcalendar.',\n        'intldateformatter.',\n        'intltimezone.',\n        'locale.',\n        'messageformatter.',\n        'normalizer.',\n        'numberformatter.',\n        'resourcebundle.',\n        'transliterator.',\n    ],\n    'language' => [\n        'function.array\\z',\n        'function.assert',\n        'function.echo',\n        'function.empty',\n        'function.halt-compiler',\n        'function.isset',\n        'function.print\\z',\n    ],\n    'ldap' => [\n        'function.ldap-',\n    ],\n    'lzf' => [\n        'function.lzf-',\n    ],\n    'mailparse' => [\n        'function.mailparse-',\n    ],\n    'mbstring' => [\n        'function.mb-',\n    ],\n    'memcache' => [\n        'function.memcache-',\n    ],\n    'mongodb' => [\n        'function.mongodb.',\n    ],\n    'mqseries' => [\n        'function.mqseries-',\n    ],\n    'mysqli' => [\n        'mysqli-',\n        'mysqli.',\n        'function.mysqli-',\n    ],\n    'mysql-obsolete' => [\n        'function.mysql-',\n    ],\n    'oauth' => [\n        'function.oauth-',\n    ],\n    'obsolete_7' => [\n        'function.autoload',\n        'function.end',\n        'function.ezmlm-hash',\n        'function.is-real',\n        'function.jpeg2wbmp',\n        'function.mcrypt-',\n        'function.mdecrypt-',\n        'function.png2wbmp',\n        'function.wddx-',\n    ],\n    'obsolete_8' => [\n        'function.mhash',\n        'function.utf8-decode',\n        'function.utf8-encode',\n        'function.zip-',\n    ],\n    'oci8' => [\n        'function.oci\\.+',\n    ],\n    'odbc' => [\n        'function.odbc-',\n    ],\n    'openal' => [\n        'function.openal-',\n    ],\n    'openssl' => [\n        'function.openssl-',\n    ],\n    'parallel' => [\n        'parallel.',\n    ],\n    'pcntl' => [\n        'function.pcntl-',\n    ],\n    'pgsql' => [\n        'function.pg-',\n    ],\n    'ps' => [\n        'function.ps-',\n    ],\n    'pspell' => [\n        'function.pspell-',\n    ],\n    'radius' => [\n        'function.radius-',\n    ],\n    'rar' => [\n        'function.rar-',\n        'rararchive.',\n    ],\n    'readline' => [\n        'function.readline',\n    ],\n    'recode' => [\n        'function.recode',\n    ],\n    'runkit7' => [\n        'function.runkit7-',\n    ],\n    'rpminfo' => [\n        'function.rpm\\.+',\n    ],\n    'rrd' => [\n        'function.rrd-',\n        'function.rrdc-',\n    ],\n    'scoutapm' => [\n        'function.scoutapm-',\n    ],\n    'shmop' => [\n        'function.shmop-',\n    ],\n    'sqlsrv' => [\n        'function.sqlsrv-',\n    ],\n    'smnp' => [\n        'function.snmp-',\n        'function.snmp2-',\n        'function.snmp3-',\n        'function.snmp\\.+',\n    ],\n    'soap' => [\n        'function.is-soap-fault',\n        'function.use-soap-error-handler',\n    ],\n    'solr' => [\n        'function.solr-',\n    ],\n    'ssdeep' => [\n        'function.ssdeep-',\n    ],\n    'ssh2' => [\n        'function.ssh2-',\n    ],\n    'stats' => [\n        'function.stats-',\n    ],\n    'stomp' => [\n        'function.stomp-',\n        'stomp.',\n    ],\n    'svn' => [\n        'function.svn-',\n    ],\n    'swoole' => [\n        'function.swoole-',\n        'swoole-server.',\n    ],\n    'sysvshm' => [\n        'function.ftok',\n        'function.sem-',\n        'function.shm-',\n        'function.msg-get-queue',\n        'function.msg-queue-exists',\n        'function.msg-receive',\n        'function.msg-remove-queue',\n        'function.msg-send',\n        'function.msg-set-queue',\n        'function.msg-stat-queue',\n    ],\n    'taint' => [\n        'function.is-tainted',\n        'function.taint',\n        'function.untaint',\n    ],\n    'tcpwrap' => [\n        'function.tcpwrap-',\n    ],\n    'tidy' => [\n        'function.tidy-',\n        'tidy.',\n    ],\n    'trader' => [\n        'function.trader-',\n    ],\n    'ui' => [\n        'function.ui-',\n    ],\n    'uopz' => [\n        'function.uopz-',\n    ],\n    'var_representation' => [\n        'function.var-representation',\n    ],\n    'win32service' => [\n        'function.win32-',\n    ],\n    'wincache' => [\n        'function.wincache-',\n    ],\n    'xattr' => [\n        'function.xattr-',\n    ],\n    'xdiff' => [\n        'function.xdiff-',\n    ],\n    'xhprof' => [\n        'function.xhprof-',\n    ],\n    'xmlrpc' => ['function.xmlrpc-'],\n    'yaml' => [\n        'function.yaml-',\n    ],\n    'yaz' => [\n        'function.yaz-',\n    ],\n    'zlib' => [\n        'function.deflate-',\n        'function.gz\\.+',\n        'function.inflate-',\n        'function.readgzfile',\n        'function.zlib-',\n    ],\n    'zookeeper' => [\n        'function.zookeeper-',\n    ]\n];\n"
  },
  {
    "path": "tests/.dir-locals.el",
    "content": "((emacs-lisp-mode (package-lint-main-file . \"../php-mode.el\")))\n"
  },
  {
    "path": "tests/.editorconfig",
    "content": "# EditorConfig is awesome: http://EditorConfig.org\n\n# top-most EditorConfig file\nroot = false\n\n# Unix-style newlines with a newline ending every file\n[*.php]\nend_of_line = lf\ncharset = utf-8\ntrim_trailing_whitespace = false\ninsert_final_newline = false\n"
  },
  {
    "path": "tests/7.4/arrow-function.php",
    "content": "<?php\n\n/**\n * GitHub-Issue: https://github.com/emacs-php/php-mode/issues/506\n *\n * @see https://wiki.php.net/rfc/arrow_functions_v2\n */\n\n$fn1 = fn($x) => $x + $y;\n\n$fn2 = [\n    fn($x) => $x + $y\n];\n\n$z = 1;\n$fn3 = fn($x) => fn($y) => $x * $y + $z;\n"
  },
  {
    "path": "tests/7.4/arrow-function.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"/**\\n * GitHub-Issue: https://github.com/emacs-php/php-mode/issues/506\\n *\\n * \" . font-lock-doc-face)\n (\"@see\" php-doc-annotation-tag font-lock-doc-face)\n (\" https://wiki.php.net/rfc/arrow_functions_v2\\n */\" . font-lock-doc-face)\n (\"\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"fn1\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"fn\" . php-keyword)\n (\"(\")\n (\"$\" . php-variable-sigil)\n (\"x\" . php-variable-name)\n (\") \")\n (\"=\" . php-assignment-op)\n (\">\" . php-comparison-op)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"x\" . php-variable-name)\n (\" \")\n (\"+\" . php-arithmetic-op)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"y\" . php-variable-name)\n (\";\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"fn2\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" [\\n    \")\n (\"fn\" . php-keyword)\n (\"(\")\n (\"$\" . php-variable-sigil)\n (\"x\" . php-variable-name)\n (\") \")\n (\"=\" . php-assignment-op)\n (\">\" . php-comparison-op)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"x\" . php-variable-name)\n (\" \")\n (\"+\" . php-arithmetic-op)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"y\" . php-variable-name)\n (\"\\n];\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"z\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" 1;\\n\")\n (\"$\" . php-variable-sigil)\n (\"fn3\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"fn\" . php-keyword)\n (\"(\")\n (\"$\" . php-variable-sigil)\n (\"x\" . php-variable-name)\n (\") \")\n (\"=\" . php-assignment-op)\n (\">\" . php-comparison-op)\n (\" \")\n (\"fn\" . php-keyword)\n (\"(\")\n (\"$\" . php-variable-sigil)\n (\"y\" . php-variable-name)\n (\") \")\n (\"=\" . php-assignment-op)\n (\">\" . php-comparison-op)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"x\" . php-variable-name)\n (\" \")\n (\"*\" . php-arithmetic-op)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"y\" . php-variable-name)\n (\" \")\n (\"+\" . php-arithmetic-op)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"z\" . php-variable-name)\n (\";\\n\"))\n"
  },
  {
    "path": "tests/7.4/typed-property.php",
    "content": "<?php\n\nclass Typed\n{\n    private ?string $string;\n\n    private Hoge $hoge;\n\n    public function __construct($var = null)\n    {\n        $this->string = $var;\n    }\n\n    public function print()\n    {\n        var_dump($this->string);\n    }\n}\n\n(new Typed)->print();\n"
  },
  {
    "path": "tests/7.4/typed-property.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"class\" . php-class-declaration)\n (\" \")\n (\"Typed\" . font-lock-type-face)\n (\"\\n{\\n    \")\n (\"private\" . php-keyword)\n (\" \")\n (\"?string\" . php-class)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"string\" . php-variable-name)\n (\";\\n\\n    \")\n (\"private\" . php-keyword)\n (\" \")\n (\"Hoge\" . php-class)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"hoge\" . php-variable-name)\n (\";\\n\\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"__construct\" . php-function-name)\n (\"(\")\n (\"$\" . php-variable-sigil)\n (\"var\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"null\" . php-constant)\n (\")\\n    {\\n        \")\n (\"$\" . php-this-sigil)\n (\"this\" . php-this)\n (\"->\" . php-object-op)\n (\"string\" . php-property-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"var\" . php-variable-name)\n (\";\\n    }\\n\\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"print\" . php-function-name)\n (\"()\\n    {\\n        \")\n (\"var_dump\" . php-function-call-traditional)\n (\"(\")\n (\"$\" . php-this-sigil)\n (\"this\" . php-this)\n (\"->\" . php-object-op)\n (\"string\" . php-property-name)\n (\");\\n    }\\n}\\n\\n(\")\n (\"new\" . php-keyword)\n (\" \")\n (\"Typed\" . font-lock-type-face)\n (\")\")\n (\"->\" . php-object-op)\n (\"print\" . php-method-call-traditional)\n (\"();\\n\"))\n"
  },
  {
    "path": "tests/8.0/attribute/class.php",
    "content": "<?php\n\n# Comment\n\n#[ExampleAttribute]\n#[Attr1, Attr2]\nclass Klass\n{\n    #[ExampleAttribute]\n    function f1() { }\n\n    #[WithoutArgument]\n    #[SingleArgument(0)]\n    #[FewArguments('Hello', 'World')]\n    function foo() {}\n\n    #[WithoutArgument] #[SingleArgument(0)] #[FewArguments('Hello', 'World')]\n    function bar() {}\n\n    #[Attr2(\"foo\"), Attr2(\"bar\")]\n    function buz() {}\n}\n"
  },
  {
    "path": "tests/8.0/attribute/class.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\n\n\")\n (\"# \" . font-lock-comment-delimiter-face)\n (\"Comment\n\" . font-lock-comment-face)\n (\"\n#[ExampleAttribute]\n#[Attr1, Attr2]\n\")\n (\"class\" . php-class-declaration)\n (\" \")\n (\"Klass\" . font-lock-type-face)\n (\"\n{\n    #[ExampleAttribute]\n    \")\n (\"function\" . php-keyword)\n (\" \")\n (\"f1\" . php-function-name)\n (\"() { }\n\n    #[WithoutArgument]\n    #[\")\n (\"SingleArgument\" . php-function-call-traditional)\n (\"(0)]\n    #[\")\n (\"FewArguments\" . php-function-call-traditional)\n (\"(\")\n (\"'Hello'\" . php-string)\n (\", \")\n (\"'World'\" . php-string)\n (\")]\n    \")\n (\"function\" . php-keyword)\n (\" \")\n (\"foo\" . php-function-name)\n (\"() {}\n\n    #[WithoutArgument] #[\")\n (\"SingleArgument\" . php-function-call-traditional)\n (\"(0)] #[\")\n (\"FewArguments\" . php-function-call-traditional)\n (\"(\")\n (\"'Hello'\" . php-string)\n (\", \")\n (\"'World'\" . php-string)\n (\")]\n    \")\n (\"function\" . php-keyword)\n (\" \")\n (\"bar\" . php-function-name)\n (\"() {}\n\n    #[\")\n (\"Attr2\" . php-function-call-traditional)\n (\"(\")\n (\"\\\"foo\\\"\" . php-string)\n (\"), \")\n (\"Attr2\" . php-function-call-traditional)\n (\"(\")\n (\"\\\"bar\\\"\" . php-string)\n (\")]\n    \")\n (\"function\" . php-keyword)\n (\" \")\n (\"buz\" . php-function-name)\n (\"() {}\n}\n\"))\n"
  },
  {
    "path": "tests/8.0/attribute/function.php",
    "content": "<?php\n\n#[ExampleAttribute]\nfunction f1() { }\n\n#[WithoutArgument]\n#[SingleArgument(0)]\n#[FewArguments('Hello', 'World')]\nfunction foo() {}\n\n#[WithoutArgument]#[SingleArgument(0)]#[FewArguments('Hello', 'World')]\nfunction bar() {}\n"
  },
  {
    "path": "tests/8.0/attribute/function.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\n\n#[ExampleAttribute]\n\")\n (\"function\" . php-keyword)\n (\" \")\n (\"f1\" . php-function-name)\n (\"() { }\n\n#[WithoutArgument]\n#[\")\n (\"SingleArgument\" . php-function-call-traditional)\n (\"(0)]\n#[\")\n (\"FewArguments\" . php-function-call-traditional)\n (\"(\")\n (\"'Hello'\" . php-string)\n (\", \")\n (\"'World'\" . php-string)\n (\")]\n\")\n (\"function\" . php-keyword)\n (\" \")\n (\"foo\" . php-function-name)\n (\"() {}\n\n#[WithoutArgument]#[\")\n (\"SingleArgument\" . php-function-call-traditional)\n (\"(0)]#[\")\n (\"FewArguments\" . php-function-call-traditional)\n (\"(\")\n (\"'Hello'\" . php-string)\n (\", \")\n (\"'World'\" . php-string)\n (\")]\n\")\n (\"function\" . php-keyword)\n (\" \")\n (\"bar\" . php-function-name)\n (\"() {}\n\"))\n"
  },
  {
    "path": "tests/8.0/attribute/function2.php",
    "content": "<?php\n\n#[\n Deprecated\n]\nfunction f($arg1,\n #[Deprecated] $arg2){}\n#Deprecated\n"
  },
  {
    "path": "tests/8.0/attribute/function2.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\n\n#[\n Deprecated\n]\n\")\n (\"function\" . php-keyword)\n (\" \")\n (\"f\" . php-function-name)\n (\"(\")\n (\"$\" . php-variable-sigil)\n (\"arg1\" . php-variable-name)\n (\",\n #[Deprecated] \")\n (\"$\" . php-variable-sigil)\n (\"arg2\" . php-variable-name)\n (\"){}\n\")\n (\"#D\" . font-lock-comment-delimiter-face)\n (\"eprecated\n\" . font-lock-comment-face))\n"
  },
  {
    "path": "tests/8.1/enum.php",
    "content": "<?php\n\nenum Size\n{\n    case Small;\n    case Medium;\n    case Large;\n\n    public static function fromLength(int $cm)\n    {\n        return match(true) {\n            $cm < 50 => static::Small,\n            $cm < 100 => static::Medium,\n            default => static::Large,\n        };\n    }\n}\n"
  },
  {
    "path": "tests/8.1/enum.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\n\n\")\n (\"enum\" . php-keyword)\n (\" \")\n (\"Size\" . font-lock-type-face)\n (\"\n{\n    \")\n (\"case\" . php-keyword)\n (\" \")\n (\"Small\" . font-lock-type-face)\n (\";\n    \")\n (\"case\" . php-keyword)\n (\" \")\n (\"Medium\" . font-lock-type-face)\n (\";\n    \")\n (\"case\" . php-keyword)\n (\" \")\n (\"Large\" . font-lock-type-face)\n (\";\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"static\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"fromLength\" . php-function-name)\n (\"(\")\n (\"int\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"cm\" . php-variable-name)\n (\")\n    {\n        \")\n (\"return\" . php-keyword)\n (\" \")\n (\"match\" . php-keyword)\n (\"(\")\n (\"true\" . php-constant)\n (\") {\n            \")\n (\"$\" . php-variable-sigil)\n (\"cm\" . php-variable-name)\n (\" \")\n (\"<\" . php-comparison-op)\n (\" 50 \")\n (\"=\" . php-assignment-op)\n (\">\" . php-comparison-op)\n (\" \")\n (\"static\" . php-keyword)\n (\"::\" . php-paamayim-nekudotayim)\n (\"Small,\n            \")\n (\"$\" . php-variable-sigil)\n (\"cm\" . php-variable-name)\n (\" \")\n (\"<\" . php-comparison-op)\n (\" 100 \")\n (\"=\" . php-assignment-op)\n (\">\" . php-comparison-op)\n (\" \")\n (\"static\" . php-keyword)\n (\"::\" . php-paamayim-nekudotayim)\n (\"Medium,\n            \")\n (\"default\" . php-keyword)\n (\" \")\n (\"=\" . php-assignment-op)\n (\">\" . php-comparison-op)\n (\" \")\n (\"static\" . php-keyword)\n (\"::\" . php-paamayim-nekudotayim)\n (\"Large,\n        };\n    }\n}\n\"))\n"
  },
  {
    "path": "tests/8.1/readonly.php",
    "content": "<?php\n\nclass Foo\n{\n    private readonly string $p1;\n    public readonly int $p2;\n\n    public function __construct(\n        private readonly string $a1,\n        public readonly int $a2,\n    ) {}\n}\n\n__halt_compiler();\n\nclaas Err\n{\n    /** Readonly property must have type */\n    public readonly $e1;\n}\n"
  },
  {
    "path": "tests/8.1/readonly.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\n\n\")\n (\"class\" . php-class-declaration)\n (\" \")\n (\"Foo\" . font-lock-type-face)\n (\"\n{\n    \")\n (\"private\" . php-keyword)\n (\" \")\n (\"readonly\" . php-keyword)\n (\" \")\n (\"string\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"p1\" . php-variable-name)\n (\";\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"readonly\" . php-keyword)\n (\" \")\n (\"int\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"p2\" . php-variable-name)\n (\";\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"__construct\" . php-function-name)\n (\"(\n        \")\n (\"private\" . php-keyword)\n (\" \")\n (\"readonly\" . php-keyword)\n (\" \")\n (\"string\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"a1\" . php-variable-name)\n (\",\n        \")\n (\"public\" . php-keyword)\n (\" \")\n (\"readonly\" . php-keyword)\n (\" \")\n (\"int\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"a2\" . php-variable-name)\n (\",\n    ) {}\n}\n\n\")\n (\"__halt_compiler\" . php-keyword)\n (\"();\n\n\")\n (\"claas\" . font-lock-type-face)\n (\" \")\n (\"Err\" . font-lock-variable-name-face)\n (\"\n{\n    \")\n (\"/** Readonly property must have type */\" . font-lock-doc-face)\n (\"\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"readonly\" . php-class)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"e1\" . php-variable-name)\n (\";\n}\n\"))\n"
  },
  {
    "path": "tests/8.4/property-hooks.php",
    "content": "<?php\n\nclass Person\n{\n    // A \"virtual\" property.  It may not be set explicitly.\n    public string $fullName {\n        get => $this->firstName . ' ' . $this->lastName;\n    }\n\n    // All write operations go through this hook, and the result is what is written.\n    // Read access happens normally.\n    public string $firstName {\n        set => ucfirst(strtolower($value));\n    }\n\n    // All write operations go through this hook, which has to write to the backing value itself.\n    // Read access happens normally.\n    public string $lastName {\n        set {\n            if (strlen($value) < 2) {\n                throw new \\InvalidArgumentException('Too short');\n            }\n            $this->lastName = $value;\n        }\n    }\n}\n\n$p = new Person();\n\n$p->firstName = 'peter';\nprint $p->firstName; // Prints \"Peter\"\n$p->lastName = 'Peterson';\nprint $p->fullName; // Prints \"Peter Peterson\"\n"
  },
  {
    "path": "tests/8.4/property-hooks.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"class\" . php-class-declaration)\n (\" \")\n (\"Person\" . font-lock-type-face)\n (\"\\n{\\n    \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"A \\\"virtual\\\" property.  It may not be set explicitly.\\n\" . font-lock-comment-face)\n (\"    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"string\" . php-class)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"fullName\" . php-variable-name)\n (\" {\\n        \")\n (\"get\" . php-builtin)\n (\" \")\n (\"=\" . php-assignment-op)\n (\">\" . php-comparison-op)\n (\" \")\n (\"$\" . php-this-sigil)\n (\"this\" . php-this)\n (\"->\" . php-object-op)\n (\"firstName\" . php-property-name)\n (\" . \")\n (\"' '\" . php-string)\n (\" . \")\n (\"$\" . php-this-sigil)\n (\"this\" . php-this)\n (\"->\" . php-object-op)\n (\"lastName\" . php-property-name)\n (\";\\n    }\\n\\n    \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"All write operations go through this hook, and the result is what is written.\\n\" . font-lock-comment-face)\n (\"    \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Read access happens normally.\\n\" . font-lock-comment-face)\n (\"    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"string\" . php-class)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"firstName\" . php-variable-name)\n (\" {\\n        \")\n (\"set\" . php-builtin)\n (\" \")\n (\"=\" . php-assignment-op)\n (\">\" . php-comparison-op)\n (\" \")\n (\"ucfirst\" . php-function-call-traditional)\n (\"(\")\n (\"strtolower\" . php-function-call-traditional)\n (\"(\")\n (\"$\" . php-variable-sigil)\n (\"value\" . php-variable-name)\n (\"));\\n    }\\n\\n    \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"All write operations go through this hook, which has to write to the backing value itself.\\n\" . font-lock-comment-face)\n (\"    \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Read access happens normally.\\n\" . font-lock-comment-face)\n (\"    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"string\" . php-class)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"lastName\" . php-variable-name)\n (\" {\\n        \")\n (\"set\" . php-builtin)\n (\" {\\n            \")\n (\"if\" . php-keyword)\n (\" (\")\n (\"strlen\" . php-function-call-traditional)\n (\"(\")\n (\"$\" . php-variable-sigil)\n (\"value\" . php-variable-name)\n (\") \")\n (\"<\" . php-comparison-op)\n (\" 2) {\\n                \")\n (\"throw\" . php-keyword)\n (\" \")\n (\"new\" . php-keyword)\n (\" \")\n (\"\\\\InvalidArgumentException\" . font-lock-type-face)\n (\"(\")\n (\"'Too short'\" . php-string)\n (\");\\n            }\\n            \")\n (\"$\" . php-this-sigil)\n (\"this\" . php-this)\n (\"->\" . php-object-op)\n (\"lastName\" . php-property-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"value\" . php-variable-name)\n (\";\\n        }\\n    }\\n}\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"p\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"new\" . php-keyword)\n (\" \")\n (\"Person\" . font-lock-type-face)\n (\"();\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"p\" . php-variable-name)\n (\"->\" . php-object-op)\n (\"firstName\" . php-property-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"'peter'\" . php-string)\n (\";\\n\")\n (\"print\" . php-keyword)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"p\" . php-variable-name)\n (\"->\" . php-object-op)\n (\"firstName\" . php-property-name)\n (\"; \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Prints \\\"Peter\\\"\\n\" . font-lock-comment-face)\n (\"$\" . php-variable-sigil)\n (\"p\" . php-variable-name)\n (\"->\" . php-object-op)\n (\"lastName\" . php-property-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"'Peterson'\" . php-string)\n (\";\\n\")\n (\"print\" . php-keyword)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"p\" . php-variable-name)\n (\"->\" . php-object-op)\n (\"fullName\" . php-property-name)\n (\"; \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Prints \\\"Peter Peterson\\\"\\n\" . font-lock-comment-face))\n"
  },
  {
    "path": "tests/README.md",
    "content": "Tests\n=====\n\nThis directory contains tests for PHP Mode.  Each test begins with a\ncomment header explaining the purpose of the test and a link to the\nrelative [Github issue][github].  The main purpose of these tests are\nto demonstrate whether or not features like syntax highlighting and\nindentation work properly.  Because of that, executing most of the\ntests is not important, since we do not care about how PHP itself\ninterprets the test scripts.  We only care about how Emacs and\nPHP Mode formats the code within each test.\n\nPlease use the file `tests/template.php` as a start when creating new\ntests cases.\n\n\n\n[github]: https://github.com/emacs-php/php-mode\n"
  },
  {
    "path": "tests/arrays.php",
    "content": "<?php\n\n// Array should be treated like a normal keyword\n$test = array();\n\n$test = function($test = array()) {\n};\n\n// Array should be treated as a type instead of a keyword in the following situations:\n// - cast, should look like `(int)`\n// - type hint, should look like `int $var`\n// - return type, should look like `: int`\n$test = (array)$test;\n\n$test = function(array $byValue, array &$byReference): array {\n};\n"
  },
  {
    "path": "tests/arrays.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Array should be treated like a normal keyword\\n\" . font-lock-comment-face)\n (\"$\" . php-variable-sigil)\n (\"test\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"array\" . php-keyword)\n (\"();\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"test\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"function\" . php-keyword)\n (\"(\")\n (\"$\" . php-variable-sigil)\n (\"test\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"array\" . php-keyword)\n (\"()) {\\n};\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Array should be treated as a type instead of a keyword in the following situations:\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"- cast, should look like `(int)`\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"- type hint, should look like `int $var`\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"- return type, should look like `: int`\\n\" . font-lock-comment-face)\n (\"$\" . php-variable-sigil)\n (\"test\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" (\")\n (\"array\" . font-lock-type-face)\n (\")\")\n (\"$\" . php-variable-sigil)\n (\"test\" . php-variable-name)\n (\";\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"test\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"function\" . php-keyword)\n (\"(\")\n (\"array\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"byValue\" . php-variable-name)\n (\", \")\n (\"array\" . font-lock-type-face)\n (\" &\")\n (\"$\" . php-variable-sigil)\n (\"byReference\" . php-variable-name)\n (\"): \")\n (\"array\" . font-lock-type-face)\n (\" {\\n};\\n\"))\n"
  },
  {
    "path": "tests/constants.php",
    "content": "<?php\n\n// Test c-lang-defconst c-constant-kwds\ntrue === TRUE;\nfalse === FALSE;\nnull === NULL;\n\n// Test built-in font-lock-keywords\nIS_CONSTANT;\n__IS_CONSTANT__;\nIS_CONSTANT99;\nno_constant;\nno_CONSTANT;\n\n// Everything called statically should be highlighted with the constant face\n// (like c++-mode)\nClassName::$test;\n\n// Class name resolution is a special case\nstdClass::class;\nSomeClass::classIdentifier();\n\n__halt_compiler();\n\n// Invalid constant name\n2FOO;\n"
  },
  {
    "path": "tests/constants.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Test c-lang-defconst c-constant-kwds\\n\" . font-lock-comment-face)\n (\"true\" . php-constant)\n (\" \")\n (\"===\" . php-comparison-op)\n (\" \")\n (\"TRUE\" . php-constant)\n (\";\\n\")\n (\"false\" . php-constant)\n (\" \")\n (\"===\" . php-comparison-op)\n (\" \")\n (\"FALSE\" . php-constant)\n (\";\\n\")\n (\"null\" . php-constant)\n (\" \")\n (\"===\" . php-comparison-op)\n (\" \")\n (\"NULL\" . php-constant)\n (\";\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Test built-in font-lock-keywords\\n\" . font-lock-comment-face)\n (\"IS_CONSTANT\" . php-constant)\n (\";\\n\")\n (\"__IS_CONSTANT__\" . php-constant)\n (\";\\n\")\n (\"IS_CONSTANT99\" . php-constant)\n (\";\\nno_constant;\\nno_CONSTANT;\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Everything called statically should be highlighted with the constant face\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"(like c++-mode)\\n\" . font-lock-comment-face)\n (\"ClassName\" . php-constant)\n (\"::\" . php-paamayim-nekudotayim)\n (\"$\" . php-variable-sigil)\n (\"test\" . php-variable-name)\n (\";\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Class name resolution is a special case\\n\" . font-lock-comment-face)\n (\"stdClass\" . php-constant)\n (\"::\" . php-paamayim-nekudotayim)\n (\"class\" . php-magical-constant)\n (\";\\n\")\n (\"SomeClass\" . php-constant)\n (\"::\" . php-paamayim-nekudotayim)\n (\"classIdentifier\" . php-static-method-call-traditional)\n (\"();\\n\\n\")\n (\"__halt_compiler\" . php-keyword)\n (\"();\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Invalid constant name\\n\" . font-lock-comment-face)\n (\"2FOO;\\n\"))\n"
  },
  {
    "path": "tests/identifiers.php",
    "content": "<?php\n\n$object = new UnqualifiedClassName;\n$object = new \\FullyQualifiedClassName;\n$object = new SpaceName\\NamespacedClassName;\n$object = new NOTACONSTANT\\ClassName;\n\n// When calling a method, the class name should be highlighted with\n// the constant face. Just like c++-mode \"NS::Class::method()\"\nClassName::method();\n\\SpaceName\\ClassName::method();\n\\My_Class::method();\n\n__halt_compiler();\n\n// php-mode must understand that \\ is not part of any symbol, just\n// identifiers\n$var\\syntaxerror;\n"
  },
  {
    "path": "tests/identifiers.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"object\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"new\" . php-keyword)\n (\" \")\n (\"UnqualifiedClassName\" . font-lock-type-face)\n (\";\\n\")\n (\"$\" . php-variable-sigil)\n (\"object\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"new\" . php-keyword)\n (\" \")\n (\"\\\\FullyQualifiedClassName\" . font-lock-type-face)\n (\";\\n\")\n (\"$\" . php-variable-sigil)\n (\"object\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"new\" . php-keyword)\n (\" \")\n (\"SpaceName\\\\NamespacedClassName\" . font-lock-type-face)\n (\";\\n\")\n (\"$\" . php-variable-sigil)\n (\"object\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"new\" . php-keyword)\n (\" \")\n (\"NOTACONSTANT\\\\ClassName\" . font-lock-type-face)\n (\";\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"When calling a method, the class name should be highlighted with\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"the constant face. Just like c++-mode \\\"NS::Class::method()\\\"\\n\" . font-lock-comment-face)\n (\"ClassName\" . php-constant)\n (\"::\" . php-paamayim-nekudotayim)\n (\"method\" . php-static-method-call-traditional)\n (\"();\\n\")\n (\"\\\\SpaceName\\\\ClassName\" . php-constant)\n (\"::\" . php-paamayim-nekudotayim)\n (\"method\" . php-static-method-call-traditional)\n (\"();\\n\")\n (\"\\\\My_Class\" . php-constant)\n (\"::\" . php-paamayim-nekudotayim)\n (\"method\" . php-static-method-call-traditional)\n (\"();\\n\\n\")\n (\"__halt_compiler\" . php-keyword)\n (\"();\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"php-mode must understand that \\\\ is not part of any symbol, just\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"identifiers\\n\" . font-lock-comment-face)\n (\"$\" . php-variable-sigil)\n (\"var\" . php-variable-name)\n (\"\\\\syntaxerror;\\n\"))\n"
  },
  {
    "path": "tests/indent/issue-227.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/227\n *\n * Indentation of multi-line strings\n */\n\nfunction my_func() {\n    return \"a really long string with = inside \" .\n\"some more text\";   // ###php-mode-test### ((indent 8))\n}\n"
  },
  {
    "path": "tests/indent/issue-623.php",
    "content": "<?php\n\n$object = new DateTime();\n\n$object->something()\n    ->something(); // ###php-mode-test### ((indent 4))\n\nvar_dump(\n    $object->something() // ###php-mode-test### ((indent 4))\n        ->something(), // ###php-mode-test### ((indent 8))\n); // ###php-mode-test### ((indent 0))\n\n$arr = [\n    $object->something() // ###php-mode-test### ((indent 4))\n        /* comment */ ->something() // ###php-mode-test### ((indent 8))\n        ->something(), // ###php-mode-test### ((indent 8))\n]; // ###php-mode-test### ((indent 0))\n"
  },
  {
    "path": "tests/indent/issue-702.php",
    "content": "<?php\n\nPHP_VERSION_ID === 80000\n    ? 'foo'\n    : 'bar';\n\n$a = [\n    'key' => PHP_VERSION_ID === 80000\n        ? 'foo'\n        : 'bar',\n    true &&\n        false,\n    false\n        || true,\n    'value1'\n    ,\n    'value2'\n    ,\n];\n\nvar_dump(\n    PHP_VERSION_ID === 80000\n        ? 'foo'\n        : 'bar',\n    true && // ###php-mode-test### ((indent 4))\n        false,\n    false // ###php-mode-test### ((indent 4))\n        || true, // ###php-mode-test### ((indent 8))\n    // ###php-mode-test### ((indent 4))\n    1 // ###php-mode-test### ((indent 4))\n        + 2 // ###php-mode-test### ((indent 8))\n        / 3, // ###php-mode-test### ((indent 8))\n    'value1' // ###php-mode-test### ((indent 4))\n    , // ###php-mode-test### ((indent 4))\n    'value2' // ###php-mode-test### ((indent 4))\n    , // ###php-mode-test### ((indent 4))\n);\n"
  },
  {
    "path": "tests/indent/issue-726.php",
    "content": "<?php\n$a = [\n    'aaa' => [\n        'bee' => 2,\n    ],\n    // 'foo' => [\n    //      'bar' => 1,\n    // ],\n    // ###php-mode-test### ((indent 4))\n    'lee' => 2,\n    // 'dee' => 3\n    'gee' => 4, // ###php-mode-test### ((indent 4))\n]; // ###php-mode-test### ((indent 0))\n"
  },
  {
    "path": "tests/indent/issue-774.php",
    "content": "<?php\n\n$someObject->someFunction(\"some\", \"parameter\") // ###php-mode-test### ((indent 0))\n    ->someOtherFunc(23, 42) // ###php-mode-test### ((indent 4))\n    ->andAThirdFunction(); // ###php-mode-test### ((indent 4))\n\n$result = DateTime::createFromFormat('Y-m-d', '2112-09-03') // ###php-mode-test### ((indent 0))\n    ->someFunction(); // ###php-mode-test### ((indent 4))\n\n$pages = $dbOld->createQueryBuilder() // ###php-mode-test### ((indent 0))\n    ->select('*'); // ###php-mode-test### ((indent 4))\n"
  },
  {
    "path": "tests/indent/issue-793.php",
    "content": "<?php\n\nreturn [\n    'foo' => 1, // ###php-mode-test### ((indent 4))\n    'bar' => 2,\n\n'buz' => 3, // ###php-mode-test### ((indent 4))\n'buzbuz' => 4, // ###php-mode-test### ((indent 4))\n];\n"
  },
  {
    "path": "tests/issue-100.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/100\n *\n * The code below should appear like so:\n *\n *     use ReflectionMethod,\n *         ReflectionObject,\n *         ReflectionProperty;\n *\n * Each namespace must have the correct font-face.  Aligning the\n * namespaces is also required to satisfy the test.\n * \n */\n\nuse ReflectionMethod,\n    ReflectionObject,\n    ReflectionProperty;\n\nclass Foo\n{\n    use ReflectionMethod,\n        ReflectionObject,\n        ReflectionProperty;\n}"
  },
  {
    "path": "tests/issue-102.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/102\n *\n * Every line of code in the form of\n *\n *     $broken = true;\n *\n * in the code below should have no indentation.  This test makes sure\n * that files containing magic constants, e.g. __FILE__, do not\n * incorrectly affect the indentation of following lines.\n *\n */\n\n$x = some_function(__FILE__) . '';\n$broken = true;\n\nsome_function(__FILE__) . '';\n$broken = true;\n\nsome_function(__FILE__) + 1;\n$broken = true;\n"
  },
  {
    "path": "tests/issue-115.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/115\n *\n * This tests for aligning method calls within arrays, similar to what\n * we do in the test for issue 19.  The method calls below should all\n * align vertically along the '->' characters.\n *\n */\n\n$x = [\"x\" => $this->foo()\n/*                | column 18 */\n                  ->bar()   // ###php-mode-test### ((indent 18))\n                  ->baz()]; // ###php-mode-test### ((indent 18))\n\n$y = array(\"y\" => $this->foo()\n/*                     | column 23 */\n                       ->bar()   // ###php-mode-test### ((indent 23))\n                       ->baz()); // ###php-mode-test### ((indent 23))\n\n// Test the combination of arglist indentation and cascaded calls\n$x = ['x' => M_PI,\n/*    | column 6 */\n      'x' => 123,          // ###php-mode-test### ((indent 6))\n      'x' => $y->method()  // ###php-mode-test### ((indent 6))\n/*             | column 15 */\n               ->method()] // ###php-mode-test### ((indent 15))"
  },
  {
    "path": "tests/issue-124.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/124\n *\n * PHP Mode must highlight the heredoc string below using\n * font-lock-string-face.  The presence of the apostrophe or anything\n * else within the string should not stop the highlighting from\n * leaking out beyond the ending 'EOT' marker.\n * \n */\n\n$foo = <<<EOT\nStart of heredoc with a ' inside.\nEOT;\n\nfunction bar()\n{\n    return true;\n}\n"
  },
  {
    "path": "tests/issue-129.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/129\n *\n * PHP Mode should use 'font-lock-keyword-face' to highlight 'final'\n * in the method below.\n * \n */\n\nclass MyClass\n{\n        public final function foo() \n        {\n                return null;\n        }\n}\n"
  },
  {
    "path": "tests/issue-130.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/130\n *\n * Test indentation arrays\n */\n\n$some_array = array(\n    'foo'  => 'bar', // ###php-mode-test### ((indent 4))\n    'spam' => 'ham', // ###php-mode-test### ((indent 4))\n);\n\n$levels = array(E_USER_NOTICE  => 'notice',\n/*              | column 16 */\n                E_USER_WARNING => 'warning', // ###php-mode-test### ((indent 16))\n                E_USER_ERROR   => 'error');  // ###php-mode-test### ((indent 16))\n\narray( 'a' => 1,\n/*     | column 7 */\n       'b' => 2 ); // ###php-mode-test### ((indent 7))\n"
  },
  {
    "path": "tests/issue-135.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/135\n *\n * Test indentation of method calls\n */\n\n// Test indentation cascaded calls\n$variable->method()   // ###php-mode-test### ((indent 0))\n/*       | column 9 */\n         ->chained(); // ###php-mode-test### ((indent 9))\n\n// Test indentation of statement continuations (statement-cont)\n$variable\n    ->method()  // ###php-mode-test### ((indent 4))\n    ->method(); // ###php-mode-test### ((indent 4))\n\nClassName::method()\n    ->chained(); // ###php-mode-test### ((indent 4))\n\n// Test same behaviour inside a block\nfunction foo() {\n    $variable->method()   // ###php-mode-test### ((indent 4))\n/*           | column 13 */\n             ->chained(); // ###php-mode-test### ((indent 13))\n\n    ClassName::method()\n        ->chained();      // ###php-mode-test### ((indent 8))\n}\n\n// Test same behaviour inside an arglist\nfoo($db->baz()\n/*     | column 7 */\n       ->quux()); // ###php-mode-test### ((indent 7))\n\nfoo(\n    $variable->method()   // ###php-mode-test### ((indent 4))\n/*           | column 13 */\n             ->chained(), // ###php-mode-test### ((indent 13))\n\n\n    // Note that below indentation is different than when not inside\n    // an arglist. When inside an arglist, cc-mode doesn't provide the\n    // information that we're in a statement-cont as well.\n    //\n    // Future improvement: create a function like c-lineup-cascaded-calls\n    // to have this indented like statement-cont.\n    ClassName::method()\n    ->chained()       // ###php-mode-test### ((indent 4))\n);\n\n// Test same behaviour inside method\nclass Test {\n    public function test() {\n        $variable->method()   // ###php-mode-test### ((indent 8))\n/*               | column 17 */\n                 ->chained(); // ###php-mode-test### ((indent 17))\n\n        ClassName::method()   // ###php-mode-test### ((indent 8))\n            ->chained();      // ###php-mode-test### ((indent 12))\n    }\n}\n"
  },
  {
    "path": "tests/issue-136.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/136\n *\n * The code below contains strings with interpolated variables.  PHP\n * Mode must use font-lock-variable-name-face to highlight all of\n * those variables.  The page\n *\n *     http://www.php.net/manual/en/language.types.string.php#language.types.string.parsing\n *\n * describes all of the variable syntaxes which PHP Mode must\n * recognize and highlight appropriately.\n * \n */\n\n$name = \"Eric\";\n\nclass User\n{\n        public $name;\n        public $id = 0;\n\n        public function getName()\n        {\n                return $this->name;\n        }\n\n        public function getID()\n        {\n                return $this->id;\n        }\n}\n\n$user = new User();\n$user->name = \"Eric\";\n\n$users = array($user);\n$index = 0;\n\nob_start();\n\necho \"My name is $name\";\necho \"My name is ${name}\";\necho \"My name is {$name}\";\necho \"My name is {$user->name}\";\necho \"My name is {$user->getName()}\";\necho \"My name is {$users[0]->name}\";\necho \"My name is {$users[$index]->name}\";\necho \"My name is {$users[$user->id]->name}\";\necho \"My name is {$users[$user->getID()]->name}\";\n\nob_end_clean();\n"
  },
  {
    "path": "tests/issue-136.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"/**\\n * File level doc-comment\\n *\\n * \" . font-lock-doc-face)\n (\"@copyright\" php-doc-annotation-tag font-lock-doc-face)\n (\" 1999, 2000, 2001, 2003, 2004 Turadg Aleahmad\\n * \" . font-lock-doc-face)\n (\"@copyright\" php-doc-annotation-tag font-lock-doc-face)\n (\" 2008 Aaron S. Hawley\\n * \" . font-lock-doc-face)\n (\"@copyright\" php-doc-annotation-tag font-lock-doc-face)\n (\" 2011, 2012, 2013, 2014, 2015, 2016 Eric James Michael Ritz\\n * \" . font-lock-doc-face)\n (\"@author\" php-doc-annotation-tag font-lock-doc-face)\n (\"    USAMI Kenta <tadsan@pixiv.com>\\n * \" . font-lock-doc-face)\n (\"@link\" php-doc-annotation-tag font-lock-doc-face)\n (\"      https://github.com/emacs-php/php-mode\\n * \" . font-lock-doc-face)\n (\"@package\" php-doc-annotation-tag font-lock-doc-face)\n (\"   \" . font-lock-doc-face)\n (\"Emacs\\\\PHPMode\" php-string font-lock-doc-face)\n (\"\\n */\" . font-lock-doc-face)\n (\"\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"one-line comment\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"@annotation This is NOT annotation. 1\\n\" . font-lock-comment-face)\n (\"\\n\")\n (\"/*\" . font-lock-comment-delimiter-face)\n (\"------------------------------------------------\\n  Multi-line comment\\n\\n * @annotation This is NOT annotation. 2\\n -------------------------------------------------*/\" . font-lock-comment-face)\n (\"\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"/**\\n\" . font-lock-comment-face)\n (\"//  \" . font-lock-comment-delimiter-face)\n (\"* Comment outed class implementation\\n\" . font-lock-comment-face)\n (\"//  \" . font-lock-comment-delimiter-face)\n (\"*\\n\" . font-lock-comment-face)\n (\"//  \" . font-lock-comment-delimiter-face)\n (\"* @annotation This is NOT annotation. 3\\n\" . font-lock-comment-face)\n (\"//  \" . font-lock-comment-delimiter-face)\n (\"*/\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"class CommentOuted\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"{\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"}\\n\" . font-lock-comment-face)\n (\"\\n\")\n (\"/**\\n * Class level doc-comment\\n *\\n * Description \" . font-lock-doc-face)\n (\"{@internal \" php-doc-annotation-tag font-lock-doc-face)\n (\"Description\" php-string php-doc-annotation-tag font-lock-doc-face)\n (\"}\" php-doc-annotation-tag font-lock-doc-face)\n (\" inline tag.\\n *\\n * \" . font-lock-doc-face)\n (\"@property-read\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\"[]\" php-string font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"$\" php-doc-variable-sigil font-lock-doc-face)\n (\"name\" php-variable-name font-lock-doc-face)\n (\"\\n * \" . font-lock-doc-face)\n (\"@ORM\\\\Table\" php-doc-annotation-tag font-lock-doc-face)\n (\"(name=\\\"majormodes\\\")\\n * \" . font-lock-doc-face)\n (\"@ORM\\\\Entity\" php-doc-annotation-tag font-lock-doc-face)\n (\"(repositoryClass=\\\"Emacs\\\\Repository\\\\MajorModeRepository\\\")\\n */\" . font-lock-doc-face)\n (\"\\n\")\n (\"final\" . php-keyword)\n (\" \")\n (\"class\" . php-class-declaration)\n (\" \")\n (\"SampleClass\" . font-lock-type-face)\n (\"\\n{\\n    \")\n (\"/** Const doc-comment */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"const\" . php-keyword)\n (\" \")\n (\"SAMPLE\" . font-lock-type-face)\n (\" = \")\n (\"'SAMPLE'\" . php-string)\n (\";\\n    \")\n (\"/** \" . font-lock-doc-face)\n (\"@var\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\" sample property doc-comment */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"private\" . php-keyword)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"name\" . php-variable-name)\n (\";\\n\\n    \")\n (\"/**\\n     * \" . font-lock-doc-face)\n (\"@param\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"$\" php-doc-variable-sigil font-lock-doc-face)\n (\"name\" php-variable-name font-lock-doc-face)\n (\"\\n     */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"__construct\" . php-function-name)\n (\"(\")\n (\"$\" . php-variable-sigil)\n (\"name\" . php-variable-name)\n (\")\\n    {\\n        \")\n (\"$\" . php-this-sigil)\n (\"this\" . php-this)\n (\"->\" . php-object-op)\n (\"name\" . php-property-name)\n (\" = \")\n (\"$\" . php-variable-sigil)\n (\"name\" . php-variable-name)\n (\"; \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"comment in after code\\n\" . font-lock-comment-face)\n (\"\\n        \")\n (\"/** \" . font-lock-doc-face)\n (\"@var\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\"|\" php-string font-lock-doc-face)\n (\"bool\" font-lock-type-face php-string font-lock-doc-face)\n (\"|\" php-string font-lock-doc-face)\n (\"array\" font-lock-type-face php-string font-lock-doc-face)\n (\"[]|ArrayObject\" php-string font-lock-doc-face)\n (\" */\" . font-lock-doc-face)\n (\"\\n        \")\n (\"$\" . php-variable-sigil)\n (\"foo\" . php-variable-name)\n (\" = hoge();\\n\\n        \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"one-line comment\\n\" . font-lock-comment-face)\n (\"        \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"@annotation This is NOT annotation. 4\\n\" . font-lock-comment-face)\n (\"\\n        \")\n (\"/** \" . font-lock-doc-face)\n (\"@var\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"int\" font-lock-type-face php-string font-lock-doc-face)\n (\" internal linter variable */\" . font-lock-doc-face)\n (\"\\n        \")\n (\"$\" . php-variable-sigil)\n (\"offset\" . php-variable-name)\n (\" = 0;\\n    }\\n\\n    \")\n (\"/**\\n     * Summary\\n     *\\n     * \" . font-lock-doc-face)\n (\"@throws\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"\\\\RuntimeException\" php-string font-lock-doc-face)\n (\"\\n     */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"test\" . php-function-name)\n (\"()\\n    {\\n        \")\n (\"throw\" . php-keyword)\n (\" \")\n (\"new\" . php-keyword)\n (\" \")\n (\"\\\\RuntimeException\" . font-lock-type-face)\n (\";\\n    }\\n}\\n\"))\n"
  },
  {
    "path": "tests/issue-14.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/14\n *\n * The code below should be formatted like so if we run indent-region\n * on it:\n *\n * $post = Post::model()->find(array(\n *     'select' => 'title',\n *     'condition' => 'postID=:postID',\n *     'params' => array(':postID'=>10),\n * ));\n *\n */\n\n$post = Post::model()->find(array(\n    'select' => 'title',              // ###php-mode-test### ((indent c-basic-offset))\n    'condition' => 'postID=:postID',  // ###php-mode-test### ((indent c-basic-offset))\n    'params' => array(':postID'=>10), // ###php-mode-test### ((indent c-basic-offset))\n));                                   // ###php-mode-test### ((indent 0))"
  },
  {
    "path": "tests/issue-144.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/144\n *\n * Indentation test '#' comment line has single quote.\n *\n */\n\n# This project's homepage is  http://www.website.com\n$a = 1;\nif( $a == 1 ) {\n$a = $a + 1;\n}\n?>\n"
  },
  {
    "path": "tests/issue-145.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/145\n *\n * This tests closure indentation.\n *\n */\n\nfunction bar() {\n    return function() {\n        array_filter(function($foo) {\n            return array_map(function() use ($foo) {\n                return \"xxx\";\n            }, \"foo\");\n        });\n    };\n}"
  },
  {
    "path": "tests/issue-16.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues16\n *\n * The third 'use' statement, with comma-separated namespaces, should\n * appear in the same syntax highlighting as the first two 'use'\n * statements that import individual namespaces.  This tests for a\n * previously existing bug where the third line would trigger the\n * warning font face.\n */\n\nuse ReflectionMethod;\nuse ReflectionObject;\n\nuse ReflectionMethod, ReflectionObject;"
  },
  {
    "path": "tests/issue-174.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/174\n *\n * Test highlighting of string literals containing escaped quotes\n */\n\n'escaped single \\' quotation mark';\n\"escaped double \\\" quotation mark\";\n"
  },
  {
    "path": "tests/issue-175.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/175\n *\n * PHP mode should not highlight more than 2 digit charcter\n *\n */\n\nreturn [1,2,3,4,5,6,7,8,9,10];\n"
  },
  {
    "path": "tests/issue-178.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/178\n *\n * Test highlighting of \"as\" keyword\n */\n\nuse Test as Alias;\n\nforeach ($values as $key => $value) {}\n\nclass Test {\n    use TestTrait { test as protected; }\n}\n"
  },
  {
    "path": "tests/issue-18.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/18\n *\n * If we run indent-region on the code below then it should appear\n * like so:\n *\n * $a = 'github';\n *\n * if ($a === 'github') {\n *     header('Location: https://github.com');\n * }\n *\n * This tests for a bug where '//' inside of a string would cause an\n * indentation error.\n */\n\n$a = 'github';\n\nif ($a === 'github') {\n    header('Location: https://github.com'); // ###php-mode-test### ((indent c-basic-offset))\n}\n"
  },
  {
    "path": "tests/issue-184.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/184\n *\n * Test indentation of statements at beginning of line.\n *\n * The termination of a heredoc is always fixed bol, but php-mode must\n * detect that not all statements at column 0 are the end of a\n * heredoc.\n */\n\nfunction test() {\n    $html = <<<html\n<a href=\"#\"></a>\nhtml;\n\nreturn;\n}"
  },
  {
    "path": "tests/issue-186.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/186\n *\n * Test indentation of case body preceeded by multiple case labels\n * that fall through\n *\n * Note that this test uses the PEAR standard where case and switch\n * statements are aligned to the same column, unlike the other styles.\n * This does not matter for the purpose of this test.\n */\n\nswitch (true) {\ncase true:\n    echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))\n    echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))\n}\n\nswitch (true) {\ncase null:\ncase false:\n    echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))\n    echo 'test'; // Emacs27 breaks indentation in this case #612\n}\n\nswitch (true) {\ncase \"test\":\ncase \"test\":\n    echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))\n    echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))\n}\n\nswitch (true) {\ncase $test:\ncase $test:\n    echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))\n    echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))\n}\n\nconst AAA = 'AAA';\nconst bbb = 'bbb';\n\nswitch (true) {\ncase AAA:\ncase bbb:\ncase 111:\n    echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))\n    echo 'test'; // ###php-mode-test### ((indent (* c-basic-offset 2)))\n}\n"
  },
  {
    "path": "tests/issue-19.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/19\n *\n * If we run indent-region on the code below then it should appear\n * like this with the '->' operators aligned:\n *\n * $object = new SomeClass();\n * $object->method()\n *        ->another();\n *\n * Alignment should occur on the '->' characters regardless of the\n * scope in which the method calls appear.\n */\n\n$object = new StdClass();\n$object->call()\n       ->something();\n\nclass Whatever\n{\n    public function __construct()\n    {\n        $object = new StdClass();\n        $object->call()\n               ->something();\n    }\n\n    public function something()\n    {\n        $object = new StdClass();\n        $object->call()\n               ->something();\n    }\n}\n\n$closure = function() {\n    $object = new StdClass();\n    $object->call()\n           ->something();\n};\n\nfunction something()\n{\n    $object = new StdClass();\n    $object->call()\n           ->something();\n}\n"
  },
  {
    "path": "tests/issue-197.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/197\n *\n * Test that member highlighting goes before highlighting of cc-mode\n * types\n */\n$test->array;\n$test->int;\n$test->string;\n$test->int();\n$test->string();\n"
  },
  {
    "path": "tests/issue-197.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"/**\\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/197\\n *\\n * Test that member highlighting goes before highlighting of cc-mode\\n * types\\n */\" . font-lock-doc-face)\n (\"\\n\")\n (\"$\" . php-variable-sigil)\n (\"test\" . php-variable-name)\n (\"->\" . php-object-op)\n (\"array\" . php-property-name)\n (\";\\n\")\n (\"$\" . php-variable-sigil)\n (\"test\" . php-variable-name)\n (\"->\" . php-object-op)\n (\"int\" . php-property-name)\n (\";\\n\")\n (\"$\" . php-variable-sigil)\n (\"test\" . php-variable-name)\n (\"->\" . php-object-op)\n (\"string\" . php-property-name)\n (\";\\n\")\n (\"$\" . php-variable-sigil)\n (\"test\" . php-variable-name)\n (\"->\" . php-object-op)\n (\"int\" . php-method-call-traditional)\n (\"();\\n\")\n (\"$\" . php-variable-sigil)\n (\"test\" . php-variable-name)\n (\"->\" . php-object-op)\n (\"string\" . php-method-call-traditional)\n (\"();\\n\"))\n"
  },
  {
    "path": "tests/issue-200.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/200\n *\n * There are extra whitespaces in the code below. In PSR-2 mode, those must be\n * highlighted and stripped upon save (be careful when editing and saving,\n * then)\n */\n\nclass Foo\n{\n    public function test()   \n    {\n             \n    }   \n}\n\n\n"
  },
  {
    "path": "tests/issue-201.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/201\n *\n * Test highighting of $this\n */\n\n// Start:\n$this;\n$that;\nself::test();\nstatic::test();\nparent::test();\n"
  },
  {
    "path": "tests/issue-201.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"/**\\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/201\\n *\\n * Test highighting of \" . font-lock-doc-face)\n (\"$\" php-doc-$this-sigil php-doc-variable-sigil font-lock-doc-face)\n (\"this\" php-doc-$this php-variable-name font-lock-doc-face)\n (\"\\n */\" . font-lock-doc-face)\n (\"\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Start:\\n\" . font-lock-comment-face)\n (\"$\" . php-this-sigil)\n (\"this\" . php-this)\n (\";\\n\")\n (\"$\" . php-variable-sigil)\n (\"that\" . php-variable-name)\n (\";\\n\")\n (\"self\" . php-keyword)\n (\"::\" . php-paamayim-nekudotayim)\n (\"test\" . php-static-method-call-traditional)\n (\"();\\n\")\n (\"static\" . php-keyword)\n (\"::\" . php-paamayim-nekudotayim)\n (\"test\" . php-static-method-call-traditional)\n (\"();\\n\")\n (\"parent\" . php-keyword)\n (\"::\" . php-paamayim-nekudotayim)\n (\"test\" . php-static-method-call-traditional)\n (\"();\\n\"))\n"
  },
  {
    "path": "tests/issue-21.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/21\n *\n * This test contains a multiline string.  Emacs should highlight the\n * string properly even though it contains newline characters.\n */\n\n$test = \"This is\n         a multiline\n         string\";"
  },
  {
    "path": "tests/issue-211.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/211\n *\n * Indentation of string concatination\n */\n\n// Start:\n$str = 'some'\n. 'string1';\n\n$str_long_name = 'some'\n                             . 'string2';\n\n// Multiple lines\n$sql = \"SELECT `id`, `name` FROM `people` \"\n     . \"WHERE `name` = 'Susan' \"\n. \"ORDER BY `name` ASC \";\n"
  },
  {
    "path": "tests/issue-22.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/22\n *\n * Emacs should highlight all three comments below using\n * font-lock-comment-face.  The first two comments must have the same\n * style and highlighting as the final comment, which contains no\n * string.  This tests for a bug where a string in such comments\n * breaks font highlighting.\n */\n\n# A comment with a \"string\" inside of it.\n\n# And one using 'single quotes' instead.\n\n# Finally, a comment with no strings."
  },
  {
    "path": "tests/issue-237.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/237\n *\n * Indentation of chaining method for PSR2\n */\n\n$provider = $this->di->get('provider')\n->filterByLanguage('en'); // ###php-mode-test### ((indent c-basic-offset))\n\nfunction foo() {\n    if (true) {\n        $provider = $this->di->get('provier')\n->filterByLanguage('en'); // ###php-mode-test### ((indent (+ c-basic-offset 8)))\n    }\n}"
  },
  {
    "path": "tests/issue-253.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/253\n *\n * Highlighting fails after a string with too many escaped quotes\n */\n\nclass A {\n    function a($x = null) {\n        $this->x = $x;\n    }\n\n    $STRING = '\\'\\'\\'';\n\n    function b($x = null) {\n        $this->x = $x;\n    }\n}\n"
  },
  {
    "path": "tests/issue-259.php",
    "content": "/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/259\n *\n * This code shows how writing a closure which imports external\n * variables with the `use` keyword causes php-mode to incorrectly\n * indent one level deeper when the closure is used as the actual\n * parameter of another function.\n *\n * Expected indentation:\n *\n * $foo(function($par1, $par2) use ($ext) {\n *     return $par1 + $par2 + $ext;\n * });\n */\n\n$foo(function($par1, $par2) use ($ext) {\n    return $par1 + $par2 + $ext;\n});\n\narray_map(function($par1, $par2) use ($ext) {\n    return $par1 + $par2 + $ext;\n}, $foo);\n\n\nclass Foo\n{\n    protected function foo()\n    {\n        $foo(function($par1, $par2) use ($ext) {\n            return $par1 + $par2 + $ext;\n        });\n\n        array_map(function($par1, $par2) use ($ext) {\n            return $par1 + $par2 + $ext;\n        }, $foo);\n    }\n}\n\nfunction foo() {\n    $foo(function($par1, $par2) use ($ext) {\n        return $par1 + $par2 + $ext;\n    });\n\n    array_map(function($par1, $par2) use ($ext) {\n        return $par1 + $par2 + $ext;\n    }, $foo);\n}\n"
  },
  {
    "path": "tests/issue-27.php",
    "content": "#!/usr/bin/env php\n<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/27\n *\n * The file tests indentation on a script beginning with a shebang.\n * If you place the cursor on the line '// Tab' and indent it should\n * move to the right the appropriate number of spaces (or one tab stop\n * if that is your configuration).  The bug report linked above shows\n * that this indentation does not always work.\n */\n\nif (1 == 1) {\n    // Tab ###php-mode-test### ((indent c-basic-offset))\n}\n"
  },
  {
    "path": "tests/issue-28.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/28\n *\n * This is a performance test that (likely) relates to syntax\n * highlighting.  Scrolling up and down this file should produce no\n * noticeable slow-down.\n *\n */\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer.\n\n;; This buffer is for notes you don't want to save, and for Lisp evaluation.\n;; If you want to create a file, visit that file with C-x C-f,\n;; then enter the text in that file's own buffer."
  },
  {
    "path": "tests/issue-29.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/29\n *\n * The mode should format the code below like so:\n *\n * $app->get(\"/index\", function() {\n *     $app->redirect(\"foo\");\n * });\n *\n */\n\n$app->get(\"/index\", function() {\n    $app->redirect(\"foo\"); // ###php-mode-test### ((indent c-basic-offset))\n});                        // ###php-mode-test### ((indent 0))\n"
  },
  {
    "path": "tests/issue-305.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/305\n *\n * Test highighting of $this_foo, $that_foo\n */\n\n// Start:\n$this_foo;\n$that_foo;\n"
  },
  {
    "path": "tests/issue-305.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"/**\\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/305\\n *\\n * Test highighting of \" . font-lock-doc-face)\n (\"$\" php-doc-variable-sigil font-lock-doc-face)\n (\"this_foo\" php-variable-name font-lock-doc-face)\n (\", \" . font-lock-doc-face)\n (\"$\" php-doc-variable-sigil font-lock-doc-face)\n (\"that_foo\" php-variable-name font-lock-doc-face)\n (\"\\n */\" . font-lock-doc-face)\n (\"\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Start:\\n\" . font-lock-comment-face)\n (\"$\" . php-variable-sigil)\n (\"this_foo\" . php-variable-name)\n (\";\\n\")\n (\"$\" . php-variable-sigil)\n (\"that_foo\" . php-variable-name)\n (\";\\n\"))\n"
  },
  {
    "path": "tests/issue-307.php",
    "content": "<?php\n\n// It's the apostrophe.\n"
  },
  {
    "path": "tests/issue-310.php",
    "content": "<?php\n\nfunction a() : string {\n    return 'world';\n}\necho 'hello'; // ###php-mode-test### ((indent 0))"
  },
  {
    "path": "tests/issue-314.php",
    "content": "<?php\n\n// It's the apostrophe.\n"
  },
  {
    "path": "tests/issue-333.php",
    "content": "<?php\n\nnamespace SlowNamespace\\More\\Levels;\n\nuse Carbon\\Carbon;\nuse Illuminate\\Support\\Collection;\n\n/**\n * @author Charlie McMackin\n * @see https://github.com/emacs-php/php-mode/issues/333\n */\nclass Hello\n{\n    /**\n     * @var ThirdClass;\n     */\n    protected $fors;\n\n    /**\n     * @var FourthClassRepository;\n     */\n    protected $psr2s;\n\n    public function __construct(\n        ThirdClass $for,\n        FourthClass $psr2\n    ) {\n    }\n}\n"
  },
  {
    "path": "tests/issue-42.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/42\n *\n * Indenting the code below, particularly the closures, should not\n * cause any problems such as the long backtrace reported in the issue\n * URL above.  This code helps us test, for example, that the Elisp\n * function php-unindent-closure works correctly.\n */\n\n$di->set('config', function () use ($config) {\n    return $config;\n});\n\n$di->set('logger', function() use ($config) {\n    $filename = date('Ymd');\n    $logger = new \\Logger($config->application->logger->dir . $filename);\n    $logger->setFormat($config->application->logger->format);\n    return $logger;\n});\n"
  },
  {
    "path": "tests/issue-439.php",
    "content": "<?php\n\n/**\n * GitHub Issue:  https://github.com/emacs-php/php-mode/issues/439\n */\n\n$a = <<<ABC\nLet'go Justin\nABC;\n\n$b = <<<A_B_C\nLet'go Justin\nA_B_C;\n\n$c = <<<'A_B_C'\nLet'go Justin\nA_B_C;\n\n$d = <<<\"A_B_C\"\nLet'go Justin\nA_B_C;\n\n$e = <<<いろは\nLet'go Justin\nいろは;\n\n$f = <<<'いろは'\nLet'go Justin\nいろは;\n\n$g = <<<\"いろは\"\nLet'go Justin\nいろは;\n\nvar_dump(<<<\"ABC\"\nLet'go Justin\nABC);\n\nif (1 === 1) {\n    var_dump(<<<\"ABC\"\n    Let'go Justin\n    ABC);\n}\n"
  },
  {
    "path": "tests/issue-439.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"/**\\n * GitHub Issue:  https://github.com/emacs-php/php-mode/issues/439\\n */\" . font-lock-doc-face)\n (\"\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"a\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"<<<ABC\\nLet'go Justin\\nABC\" . php-string)\n (\";\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"b\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"<<<A_B_C\\nLet'go Justin\\nA_B_C\" . php-string)\n (\";\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"c\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"<<<'A_B_C'\\nLet'go Justin\\nA_B_C\" . php-string)\n (\";\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"d\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"<<<\\\"A_B_C\\\"\\nLet'go Justin\\nA_B_C\" . php-string)\n (\";\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"e\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"<<<いろは\\nLet'go Justin\\nいろは\" . php-string)\n (\";\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"f\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"<<<'いろは'\\nLet'go Justin\\nいろは\" . php-string)\n (\";\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"g\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"<<<\\\"いろは\\\"\\nLet'go Justin\\nいろは\" . php-string)\n (\";\\n\\n\")\n (\"var_dump\" . php-function-call-traditional)\n (\"(\")\n (\"<<<\\\"ABC\\\"\\nLet'go Justin\\nABC\" . php-string)\n (\");\\n\\n\")\n (\"if\" . php-keyword)\n (\" (1 \")\n (\"===\" . php-comparison-op)\n (\" 1) {\\n    \")\n (\"var_dump\" . php-function-call-traditional)\n (\"(\")\n (\"<<<\\\"ABC\\\"\\n    Let'go Justin\\n    ABC\" . php-string)\n (\");\\n}\\n\"))\n"
  },
  {
    "path": "tests/issue-443.php",
    "content": "<?php declare(strict_types=1); ?>\n/** GitHub Issue: https://github.com/emacs-php/php-mode/issues/443 */\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<?hh echo \"Hack open tag\" ?>\n<? echo \"obsolete short open tag\" ?>\n<% echo \"obsolete ASP tags\" %>\n<?= \"foo\" ?>\n<?= 1 + 1 ?>\n<?php /* Foo */ echo \"Bar\"; ?>\n<?php/* Foo */ echo \"Bar\"; ?>\n"
  },
  {
    "path": "tests/issue-443.php.27.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\" \")\n (\"declare\" . php-keyword)\n (\"(\")\n (\"strict_types\" . php-keyword)\n (\"=\" . php-assignment-op)\n (\"1); \")\n (\"?>\" . php-php-tag)\n (\"\\n\")\n (\"/** GitHub Issue: https://github.com/emacs-php/php-mode/issues/443 */\" . font-lock-doc-face)\n (\"\\n\")\n (\"<?xml\" . php-php-tag)\n (\" version\")\n (\"=\" . php-assignment-op)\n (\"\\\"1.0\\\"\" . php-string)\n (\" \")\n (\"encoding\" . php-keyword)\n (\"=\" . php-assignment-op)\n (\"\\\"UTF-8\\\"\" . php-string)\n (\"?>\" . php-php-tag)\n (\"\\n\")\n (\"<?hh\" . php-php-tag)\n (\" \")\n (\"echo\" . php-keyword)\n (\" \")\n (\"\\\"Hack open tag\\\"\" . php-string)\n (\" \")\n (\"?>\" . php-php-tag)\n (\"\\n\")\n (\"<?\" . php-php-tag)\n (\" \")\n (\"echo\" . php-keyword)\n (\" \")\n (\"\\\"obsolete short open tag\\\"\" . php-string)\n (\" \")\n (\"?>\" . php-php-tag)\n (\"\\n\")\n (\"<%\" . php-php-tag)\n (\" \")\n (\"echo\" . php-keyword)\n (\" \")\n (\"\\\"obsolete ASP tags\\\"\" . php-string)\n (\" \")\n (\"%>\" . php-php-tag)\n (\"\\n\")\n (\"<?=\" . php-php-tag)\n (\" \")\n (\"\\\"foo\\\"\" . php-string)\n (\" \")\n (\"?>\" . php-php-tag)\n (\"\\n\")\n (\"<?=\" . php-php-tag)\n (\" 1 \")\n (\"+\" . php-arithmetic-op)\n (\" 1 \")\n (\"?>\" . php-php-tag)\n (\"\\n\")\n (\"<?php\" . php-php-tag)\n (\" \")\n (\"/* \" . font-lock-comment-delimiter-face)\n (\"Foo\" . font-lock-comment-face)\n (\" */\" . font-lock-comment-delimiter-face)\n (\" \")\n (\"echo\" . php-keyword)\n (\" \")\n (\"\\\"Bar\\\"\" . php-string)\n (\"; \")\n (\"?>\" . php-php-tag)\n (\"\\n\")\n (\"<?php\" . php-php-tag)\n (\"/* \" . font-lock-comment-delimiter-face)\n (\"Foo\" . font-lock-comment-face)\n (\" */\" . font-lock-comment-delimiter-face)\n (\" \")\n (\"echo\" . php-keyword)\n (\" \")\n (\"\\\"Bar\\\"\" . php-string)\n (\"; \")\n (\"?>\" . php-php-tag)\n (\"\\n\"))\n"
  },
  {
    "path": "tests/issue-443.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\" \")\n (\"declare\" . php-keyword)\n (\"(\")\n (\"strict_types\" . php-keyword)\n (\"=\" . php-assignment-op)\n (\"1); \")\n (\"?>\" . php-php-tag)\n (\"\\n\")\n (\"/** GitHub Issue: https://github.com/emacs-php/php-mode/issues/443 */\" . font-lock-doc-face)\n (\"\\n\")\n (\"<?xml\" . php-php-tag)\n (\" version\")\n (\"=\" . php-assignment-op)\n (\"\\\"1.0\\\"\" . php-string)\n (\" \")\n (\"encoding\" . php-keyword)\n (\"=\" . php-assignment-op)\n (\"\\\"UTF-8\\\"\" . php-string)\n (\"?>\" . php-php-tag)\n (\"\\n\")\n (\"<?hh\" . php-php-tag)\n (\" \")\n (\"echo\" . php-keyword)\n (\" \")\n (\"\\\"Hack open tag\\\"\" . php-string)\n (\" \")\n (\"?>\" . php-php-tag)\n (\"\\n\")\n (\"<?\" . php-php-tag)\n (\" \")\n (\"echo\" . php-keyword)\n (\" \")\n (\"\\\"obsolete short open tag\\\"\" . php-string)\n (\" \")\n (\"?>\" . php-php-tag)\n (\"\\n\")\n (\"<%\" . php-php-tag)\n (\" \")\n (\"echo\" . php-keyword)\n (\" \")\n (\"\\\"obsolete ASP tags\\\"\" . php-string)\n (\" \")\n (\"%>\" . php-php-tag)\n (\"\\n\")\n (\"<?=\" . php-php-tag)\n (\" \")\n (\"\\\"foo\\\"\" . php-string)\n (\" \")\n (\"?>\" . php-php-tag)\n (\"\\n\")\n (\"<?=\" . php-php-tag)\n (\" 1 \")\n (\"+\" . php-arithmetic-op)\n (\" 1 \")\n (\"?>\" . php-php-tag)\n (\"\\n\")\n (\"<?php\" . php-php-tag)\n (\" \")\n (\"/* \" . font-lock-comment-delimiter-face)\n (\"Foo */\" . font-lock-comment-face)\n (\" \")\n (\"echo\" . php-keyword)\n (\" \")\n (\"\\\"Bar\\\"\" . php-string)\n (\"; \")\n (\"?>\" . php-php-tag)\n (\"\\n\")\n (\"<?php\" . php-php-tag)\n (\"/* \" . font-lock-comment-delimiter-face)\n (\"Foo */\" . font-lock-comment-face)\n (\" \")\n (\"echo\" . php-keyword)\n (\" \")\n (\"\\\"Bar\\\"\" . php-string)\n (\"; \")\n (\"?>\" . php-php-tag)\n (\"\\n\"))\n"
  },
  {
    "path": "tests/issue-503.php",
    "content": "<?php\nfunction foo () {\n\n}\n"
  },
  {
    "path": "tests/issue-53.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/53\n *\n * Test if switching from Drupal coding style to other coding styles updates\n * the whitespace effects.\n *\n * This file contains arbitrary PHP code with some whitespace added to the end\n * of some lines.\n *\n */\n\nclass Foo {\n\n    private $bar;\n\n    public function __construct($bar) {\n        $this->bar = $bar;\n    }\n\n    public function getBar() {\n        // here is the whitespace\n        return $this->bar;    \n    }\n\n}\n\n$foo = new Foo('bar');\n$bar = $foo->getBar();\n"
  },
  {
    "path": "tests/issue-66-bracket-namespace.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/66\n *\n * Namespace examples from\n * http://www.php.net/manual/en/language.namespaces.definitionmultiple.php\n */\n\nnamespace MyProject {\n\nconst CONNECT_OK = 1;\nclass Connection { /* ... */ }\nfunction connect() { /* ... */  }\n}\n\nnamespace { // global code\n  function myfun() {\n    session_start();\n    $a = MyProject\\connect();\n    echo MyProject\\Connection::start();\n  }\n}\n?>\n"
  },
  {
    "path": "tests/issue-66-multi-namespace.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/66\n *\n * Namespace examples from\n * http://www.php.net/manual/en/language.namespaces.definitionmultiple.php\n */\n\nnamespace MyProject;\n\nconst CONNECT_OK = 1;\nclass Connection { /* ... */ }\nfunction connect() { /* ... */  }\n\nnamespace AnotherProject;\n\nconst CONNECT_OK = 1;\nclass Connection { /* ... */ }\nfunction connect() { /* ... */  }\n?>\n"
  },
  {
    "path": "tests/issue-66-namespace.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/66\n *\n * Namespace examples from\n * http://www.php.net/manual/en/language.namespaces.rationale.php\n *\n * The different namespace tests need/should be in different files because\n * this is what PHP requires.\n */\n\nnamespace my\\name; // see \"Defining Namespaces\" section\n\nclass MyClass {}\nfunction myfunction() {}\nconst MYCONST = 1;\n\n$a = new MyClass;\n$c = new \\my\\name\\MyClass; // see \"Global Space\" section\n\n$a = strlen('hi'); // see \"Using namespaces: fallback to global\n                   // function/constant\" section\n\n$d = namespace\\MYCONST; // see \"namespace operator and __NAMESPACE__\n                        // constant\" section\n$d = __NAMESPACE__ . '\\MYCONST';\necho constant($d); // see \"Namespaces and dynamic language features\" section\n"
  },
  {
    "path": "tests/issue-66-use-namespace.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/66\n *\n * Namespace examples from user comment on\n * http://www.php.net/manual/en/language.namespaces.definitionmultiple.php\n *\n * From the comment: \"use\" statements are required to be placed after the\n * \"namespace my\\space\" but before the \"{\".\n */\n\nnamespace foo\\bar;\nuse my\\space\\MyClass;\n{\n  $str = \"hi\";\n  class TheClass {\n    public function __construct() {\n        $object = new StdClass();\n        $object->call()\n               ->something();\n    }\n  }\n // place code here\n\n} // end of namespace foo\\bar\n\nnamespace another\\bar;\nuse my\\space\\MyClass;\nuse my\\space\\AnotherClass;\n{\n  $more = \"other\";\n\n} // end of namespace another\\bar\n?>"
  },
  {
    "path": "tests/issue-66.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/66\n *\n * A large battery of tests to exercise the new cc-mode-based indentation and\n * fontification code.\n *\n * This is mainly just code copy-pasted from the PHP manual.\n */\n\n// http://www.php.net/manual/en/language.exceptions.php\nfunction inverse($x) {\n    if (!$x) {\n        throw new Exception('Division by zero.');\n    }\n    else return 1/$x;\n}\n\ntry {\n    echo inverse(5) . \"\\n\";\n    echo inverse(0) . \"\\n\";\n} catch (Exception $e) {\n    echo 'Caught exception: ',  $e->getMessage(), \"\\n\";\n}\n\n// http://www.php.net/manual/en/functions.anonymous.php\n\n$greet = function($name)\n{\n    printf(\"Hello %s\\r\\n\", $name);\n};\n\n$greet('World');\n$greet('PHP');"
  },
  {
    "path": "tests/issue-68.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/68\n *\n * The 'catch' keywords should align with 'try' and not march\n * off to the right side of the screen like they do in the bug\n * report at the URL above.\n *\n */\n\n/* CC Mode uses the indentation for 'block-close' for these 'catch'\n * statements.  However, that is assuming that the closing braces for\n * 'try' and each 'catch' align with the keywords themselves.  If they\n * do not then CC Mode gets confused and starts trying to indent\n * 'catch' blocks as if they were function definitions and other\n * strange things.\n *\n * The easiest way to deal with this is to make sure that the\n * `c-block-stmt-2-key' list contains the string \"catch\", which we\n * take care of in the definition of `php-block-stmt-2-key'.\n */\n\ntry {\n        $mongo = new \\Mongo($dsn, array(\"replicaSet\" => 'mat_replica'));\n} catch (\\MongoConnectionException $e) {\n        throw $e;\n} catch (\\Exception $e) {\n        throw $e;\n}\n\n/* CC Mode uses the indentation syntax for 'topmost-intro' for the\n * 'catch' keywords in the remaining tests.\n */\n\ntry {\n        $mongo = new \\Mongo($dsn, array(\"replicaSet\" => 'mat_replica'));\n}\ncatch (\\MongoConnectionException $e) {\n        throw $e;\n}\ncatch (\\Exception $e) {\n        throw $e;\n}\n\ntry\n{\n        $mongo = new \\Mongo($dsn, array(\"replicaSet\" => 'mat_replica'));\n}\ncatch (\\MongoConnectionException $e)\n{\n        throw $e;\n}\ncatch (\\Exception $e)\n{\n        throw $e;\n}\n"
  },
  {
    "path": "tests/issue-73.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/73\n *\n * The `delete-indentation' function should work properly for PHP.\n * This means modifying the logic of `fixup-whitespace' so that it\n * eliminates spaces before ',', ';', '->' amd '::' and after '->' and\n * '::'.\n */\n\n# Correct\nTEST::di->set('config', function () use ($config);\n\n# Test\nTEST\n::\ndi->set('config', function () use ($config);\n\n# Test\nTEST::di\n->\nset('config', function () use ($config);\n\n# Test\nTEST::di->set('config'\n, function () use ($config);\n\n# Test\nTEST::di->set('config', function () use ($config)\n;\n"
  },
  {
    "path": "tests/issue-83.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/83\n *\n * All static methods should appear on imenu whether 'static' keyword\n * is placed before or after visibility.\n *\n */\n\nclass Test\n{\n\tstatic public function staticBeforeVisibility()\n\t{\n\t\t// Do nothing\n\t}\n\n\tpublic static function staticAfterVisibility()\n\t{\n\t\t// Do nothing\n\t}\n}"
  },
  {
    "path": "tests/issue-9.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/9\n *\n * The HTML below contains a single quote as part of \"We'll\".  The bug\n * for issue 9 shows how the presence of this single quote makes\n * php-mode think that the rest of the line constitutes a quoted\n * string, thus messing up the syntax highlighting of the HTML.  If\n * php-mode is working properly then the contents of the tag should\n * appear in the same highlighting as the initial 'We', and the\n * closing </a> tag should match the highlighting of its opening tag.\n */\n\n?>\n<a href=\"somewhere\">We'll go there</a>"
  },
  {
    "path": "tests/issue-99.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/99\n *\n * The code below contains a 'foreach' without any braces.  We use CC\n * Mode to customize indentation and it treats continued differently\n * depending on whether or not they end with a brace.  This test is to\n * ensure that PHP Mode properly indents 'foreach' statements without\n * any braces.\n *\n */\n\nforeach ($x as $s)\n        echo $s; // ###php-mode-test### ((indent c-basic-offset))"
  },
  {
    "path": "tests/lang/class/anonymous-class.php",
    "content": "<?php\n\n$class = new class () extends IteratorAggregate {\n    // ###php-mode-test### ((indent 4))\n};\n\nis_object(1, new class () extends IteratorAggregate {\n    // ###php-mode-test### ((indent 4))\n});\n"
  },
  {
    "path": "tests/lang/class/anonymous-class.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"class\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"new\" . php-keyword)\n (\" \")\n (\"class\" . php-class-declaration)\n (\" () \")\n (\"extends\" . php-class-declaration-spec)\n (\" \")\n (\"IteratorAggregate\" . font-lock-type-face)\n (\" {\\n    \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"###php-mode-test### ((indent 4))\\n\" . font-lock-comment-face)\n (\"};\\n\\n\")\n (\"is_object\" . php-function-call-traditional)\n (\"(1, \")\n (\"new\" . php-keyword)\n (\" \")\n (\"class\" . php-class-declaration)\n (\" () \")\n (\"extends\" . php-class-declaration-spec)\n (\" \")\n (\"IteratorAggregate\" . font-lock-type-face)\n (\" {\\n    \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"###php-mode-test### ((indent 4))\\n\" . font-lock-comment-face)\n (\"});\\n\"))\n"
  },
  {
    "path": "tests/lang/constants/const.php",
    "content": "<?php\n\nconst A = 'A';\nconst a = 'a';\nconst B='B';\nconst b='b';\nconst Aa = 'Aa';\nconst AA = 'AA';\nconst AB='AB';\nconst Ab='AA';\nconst α = '';\nconst Ａ = '';\nconst ａ = '';\nconst あ = 'あ';\nconst 漢 = '漢';\nconst あα = 'あα';\nconst 漢_ = '漢_';\nconst あ_='あ_';\nconst X='X';const y='y';\n"
  },
  {
    "path": "tests/lang/constants/const.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"A\" . php-constant-assign)\n (\" = \")\n (\"'A'\" . php-string)\n (\";\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"a\" . php-constant-assign)\n (\" = \")\n (\"'a'\" . php-string)\n (\";\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"B\" . php-constant-assign)\n (\"=\")\n (\"'B'\" . php-string)\n (\";\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"b\" . php-constant-assign)\n (\"=\")\n (\"'b'\" . php-string)\n (\";\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"Aa\" . php-constant-assign)\n (\" = \")\n (\"'Aa'\" . php-string)\n (\";\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"AA\" . php-constant-assign)\n (\" = \")\n (\"'AA'\" . php-string)\n (\";\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"AB\" . php-constant-assign)\n (\"=\")\n (\"'AB'\" . php-string)\n (\";\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"Ab\" . php-constant-assign)\n (\"=\")\n (\"'AA'\" . php-string)\n (\";\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"α\" . php-constant-assign)\n (\" = \")\n (\"''\" . php-string)\n (\";\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"Ａ\" . php-constant-assign)\n (\" = \")\n (\"''\" . php-string)\n (\";\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"ａ\" . php-constant-assign)\n (\" = \")\n (\"''\" . php-string)\n (\";\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"あ\" . php-constant-assign)\n (\" = \")\n (\"'あ'\" . php-string)\n (\";\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"漢\" . php-constant-assign)\n (\" = \")\n (\"'漢'\" . php-string)\n (\";\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"あα\" . php-constant-assign)\n (\" = \")\n (\"'あα'\" . php-string)\n (\";\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"漢_\" . php-constant-assign)\n (\" = \")\n (\"'漢_'\" . php-string)\n (\";\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"あ_\" . php-constant-assign)\n (\"=\")\n (\"'あ_'\" . php-string)\n (\";\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"X\" . php-constant-assign)\n (\"=\")\n (\"'X'\" . php-string)\n (\";\")\n (\"const\" . php-keyword)\n (\" \")\n (\"y\" . php-constant-assign)\n (\"=\")\n (\"'y'\" . php-string)\n (\";\\n\"))\n"
  },
  {
    "path": "tests/lang/doc-comment/annotation.php",
    "content": "<?php\n\n/**\n * PSR-5 style tag annotation\n */\n\n/**\n * @MyProject\\Annotations\\Foobarable\n */\nclass User\n{\n}\n\n/**\n * @property-read string $myProperty\n */\nclass Child extends Parent_\n{\n}\n"
  },
  {
    "path": "tests/lang/doc-comment/annotation.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"/**\\n * PSR-5 style tag annotation\\n */\" . font-lock-doc-face)\n (\"\\n\\n\")\n (\"/**\\n * \" . font-lock-doc-face)\n (\"@MyProject\\\\Annotations\\\\Foobarable\" php-doc-annotation-tag font-lock-doc-face)\n (\"\\n */\" . font-lock-doc-face)\n (\"\\n\")\n (\"class\" . php-class-declaration)\n (\" \")\n (\"User\" . font-lock-type-face)\n (\"\\n{\\n}\\n\\n\")\n (\"/**\\n * \" . font-lock-doc-face)\n (\"@property-read\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"$\" php-doc-variable-sigil font-lock-doc-face)\n (\"myProperty\" php-variable-name font-lock-doc-face)\n (\"\\n */\" . font-lock-doc-face)\n (\"\\n\")\n (\"class\" . php-class-declaration)\n (\" \")\n (\"Child\" . font-lock-type-face)\n (\" \")\n (\"extends\" . php-class-declaration-spec)\n (\" \")\n (\"Parent_\" . font-lock-type-face)\n (\"\\n{\\n}\\n\"))\n"
  },
  {
    "path": "tests/lang/doc-comment/comments.php",
    "content": "<?php\n\n/**\n * File level doc-comment\n *\n * @copyright 1999, 2000, 2001, 2003, 2004 Turadg Aleahmad\n * @copyright 2008 Aaron S. Hawley\n * @copyright 2011, 2012, 2013, 2014, 2015, 2016 Eric James Michael Ritz\n * @author    USAMI Kenta <tadsan@pixiv.com>\n * @link      https://github.com/emacs-php/php-mode\n * @package   Emacs\\PHPMode\n */\n\n// one-line comment\n// @annotation This is NOT annotation. 1\n\n/*------------------------------------------------\n  Multi-line comment\n\n * @annotation This is NOT annotation. 2\n -------------------------------------------------*/\n\n// /**\n//  * Comment outed class implementation\n//  *\n//  * @annotation This is NOT annotation. 3\n//  */\n// class CommentOuted\n// {\n// }\n\n/**\n * Class level doc-comment\n *\n * Description {@internal Description} inline tag.\n *\n * @property-read string[] $name\n * @ORM\\Table(name=\"majormodes\")\n * @ORM\\Entity(repositoryClass=\"Emacs\\Repository\\MajorModeRepository\")\n */\nfinal class SampleClass\n{\n    /** Const doc-comment */\n    const SAMPLE = 'SAMPLE';\n    /** @var string sample property doc-comment */\n    private $name;\n\n    /**\n     * @param string $name\n     */\n    public function __construct($name)\n    {\n        $this->name = $name; // comment in after code\n\n        /** @var string|bool|array[]|ArrayObject */\n        $foo = hoge();\n\n        // one-line comment\n        // @annotation This is NOT annotation. 4\n\n        /** @var int internal linter variable */\n        $offset = 0;\n    }\n\n    /**\n     * Summary\n     *\n     * @throws \\RuntimeException\n     */\n    public function test()\n    {\n        throw new \\RuntimeException;\n    }\n}\n"
  },
  {
    "path": "tests/lang/doc-comment/comments.php.24.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"/**\\n * File level doc-comment\\n *\\n * \" . font-lock-doc-face)\n (\"@copyright\" php-doc-annotation-tag font-lock-doc-face)\n (\" 1999, 2000, 2001, 2003, 2004 Turadg Aleahmad\\n * \" . font-lock-doc-face)\n (\"@copyright\" php-doc-annotation-tag font-lock-doc-face)\n (\" 2008 Aaron S. Hawley\\n * \" . font-lock-doc-face)\n (\"@copyright\" php-doc-annotation-tag font-lock-doc-face)\n (\" 2011, 2012, 2013, 2014, 2015, 2016 Eric James Michael Ritz\\n * \" . font-lock-doc-face)\n (\"@author\" php-doc-annotation-tag font-lock-doc-face)\n (\"    USAMI Kenta <tadsan@pixiv.com>\\n * \" . font-lock-doc-face)\n (\"@link\" php-doc-annotation-tag font-lock-doc-face)\n (\"      https://github.com/emacs-php/php-mode\\n * \" . font-lock-doc-face)\n (\"@package\" php-doc-annotation-tag font-lock-doc-face)\n (\"   \" . font-lock-doc-face)\n (\"Emacs\\\\PHPMode\" php-string font-lock-doc-face)\n (\"\\n */\" . font-lock-doc-face)\n (\"\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"one-line comment\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"@annotation This is NOT annotation. 1\\n\" . font-lock-comment-face)\n (\"\\n\")\n (\"/*\" . font-lock-comment-delimiter-face)\n (\"------------------------------------------------\\n  Multi-line comment\\n\\n * @annotation This is NOT annotation. 2\\n -------------------------------------------------*/\" . font-lock-comment-face)\n (\"\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"/**\\n\" . font-lock-comment-face)\n (\"//  \" . font-lock-comment-delimiter-face)\n (\"* Comment outed class implementation\\n\" . font-lock-comment-face)\n (\"//  \" . font-lock-comment-delimiter-face)\n (\"*\\n\" . font-lock-comment-face)\n (\"//  \" . font-lock-comment-delimiter-face)\n (\"* @annotation This is NOT annotation. 3\\n\" . font-lock-comment-face)\n (\"//  \" . font-lock-comment-delimiter-face)\n (\"*/\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"class CommentOuted\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"{\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"}\\n\" . font-lock-comment-face)\n (\"\\n\")\n (\"/**\\n * Class level doc-comment\\n *\\n * Description \" . font-lock-doc-face)\n (\"{@internal \" php-doc-annotation-tag font-lock-doc-face)\n (\"Description\" php-string php-doc-annotation-tag font-lock-doc-face)\n (\"}\" php-doc-annotation-tag font-lock-doc-face)\n (\" inline tag.\\n *\\n * \" . font-lock-doc-face)\n (\"@property-read\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\"[]\" php-string font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"$\" php-doc-variable-sigil font-lock-doc-face)\n (\"name\" php-variable-name font-lock-doc-face)\n (\"\\n * \" . font-lock-doc-face)\n (\"@ORM\\\\Table\" php-doc-annotation-tag font-lock-doc-face)\n (\"(name=\\\"majormodes\\\")\\n * \" . font-lock-doc-face)\n (\"@ORM\\\\Entity\" php-doc-annotation-tag font-lock-doc-face)\n (\"(repositoryClass=\\\"Emacs\\\\Repository\\\\MajorModeRepository\\\")\\n */\" . font-lock-doc-face)\n (\"\\n\")\n (\"final\" . php-class-modifier)\n (\" \")\n (\"class\" . php-class-declaration)\n (\" \")\n (\"SampleClass\" . font-lock-type-face)\n (\"\\n{\\n    \")\n (\"/** Const doc-comment */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"const\" . php-keyword)\n (\" \")\n (\"SAMPLE\" . php-constant-assign)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"'SAMPLE'\" . php-string)\n (\";\\n    \")\n (\"/** \" . font-lock-doc-face)\n (\"@var\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\" sample property doc-comment */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"private\" . php-keyword)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"name\" . php-variable-name)\n (\";\\n\\n    \")\n (\"/**\\n     * \" . font-lock-doc-face)\n (\"@param\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"$\" php-doc-variable-sigil font-lock-doc-face)\n (\"name\" php-variable-name font-lock-doc-face)\n (\"\\n     */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"__construct\" . php-function-name)\n (\"(\")\n (\"$\" . php-variable-sigil)\n (\"name\" . php-variable-name)\n (\")\\n    {\\n        \")\n (\"$\" . php-this-sigil)\n (\"this\" . php-this)\n (\"->\" . php-object-op)\n (\"name\" . php-property-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"name\" . php-variable-name)\n (\"; \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"comment in after code\\n\" . font-lock-comment-face)\n (\"\\n        \")\n (\"/** \" . font-lock-doc-face)\n (\"@var\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\"|\" php-string font-lock-doc-face)\n (\"bool\" font-lock-type-face php-string font-lock-doc-face)\n (\"|\" php-string font-lock-doc-face)\n (\"array\" font-lock-type-face php-string font-lock-doc-face)\n (\"[]|ArrayObject\" php-string font-lock-doc-face)\n (\" */\" . font-lock-doc-face)\n (\"\\n        \")\n (\"$\" . php-variable-sigil)\n (\"foo\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"hoge\" . php-function-call-traditional)\n (\"();\\n\\n        \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"one-line comment\\n\" . font-lock-comment-face)\n (\"        \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"@annotation This is NOT annotation. 4\\n\" . font-lock-comment-face)\n (\"\\n        \")\n (\"/** \" . font-lock-doc-face)\n (\"@var\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"int\" font-lock-type-face php-string font-lock-doc-face)\n (\" internal linter variable */\" . font-lock-doc-face)\n (\"\\n        \")\n (\"$\" . php-variable-sigil)\n (\"offset\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" 0;\\n    }\\n\\n    \")\n (\"/**\\n     * Summary\\n     *\\n     * \" . font-lock-doc-face)\n (\"@throws\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"\\\\RuntimeException\" php-string font-lock-doc-face)\n (\"\\n     */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"test\" . php-function-name)\n (\"()\\n    {\\n        \")\n (\"throw\" . php-keyword)\n (\" \")\n (\"new\" . php-keyword)\n (\" \")\n (\"\\\\RuntimeException\" . font-lock-type-face)\n (\";\\n    }\\n}\\n\"))\n"
  },
  {
    "path": "tests/lang/doc-comment/comments.php.27.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"/**\\n * File level doc-comment\\n *\\n * \" . font-lock-doc-face)\n (\"@copyright\" php-doc-annotation-tag font-lock-doc-face)\n (\" 1999, 2000, 2001, 2003, 2004 Turadg Aleahmad\\n * \" . font-lock-doc-face)\n (\"@copyright\" php-doc-annotation-tag font-lock-doc-face)\n (\" 2008 Aaron S. Hawley\\n * \" . font-lock-doc-face)\n (\"@copyright\" php-doc-annotation-tag font-lock-doc-face)\n (\" 2011, 2012, 2013, 2014, 2015, 2016 Eric James Michael Ritz\\n * \" . font-lock-doc-face)\n (\"@author\" php-doc-annotation-tag font-lock-doc-face)\n (\"    USAMI Kenta <tadsan@pixiv.com>\\n * \" . font-lock-doc-face)\n (\"@link\" php-doc-annotation-tag font-lock-doc-face)\n (\"      https://github.com/emacs-php/php-mode\\n * \" . font-lock-doc-face)\n (\"@package\" php-doc-annotation-tag font-lock-doc-face)\n (\"   \" . font-lock-doc-face)\n (\"Emacs\\\\PHPMode\" php-string font-lock-doc-face)\n (\"\\n */\" . font-lock-doc-face)\n (\"\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"one-line comment\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"@annotation This is NOT annotation. 1\\n\" . font-lock-comment-face)\n (\"\\n\")\n (\"/*\" . font-lock-comment-delimiter-face)\n (\"------------------------------------------------\\n  Multi-line comment\\n\\n * @annotation This is NOT annotation. 2\\n -------------------------------------------------\" . font-lock-comment-face)\n (\"*/\" . font-lock-comment-delimiter-face)\n (\"\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"/**\\n\" . font-lock-comment-face)\n (\"//  \" . font-lock-comment-delimiter-face)\n (\"* Comment outed class implementation\\n\" . font-lock-comment-face)\n (\"//  \" . font-lock-comment-delimiter-face)\n (\"*\\n\" . font-lock-comment-face)\n (\"//  \" . font-lock-comment-delimiter-face)\n (\"* @annotation This is NOT annotation. 3\\n\" . font-lock-comment-face)\n (\"//  \" . font-lock-comment-delimiter-face)\n (\"*/\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"class CommentOuted\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"{\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"}\\n\" . font-lock-comment-face)\n (\"\\n\")\n (\"/**\\n * Class level doc-comment\\n *\\n * Description \" . font-lock-doc-face)\n (\"{@internal \" php-doc-annotation-tag font-lock-doc-face)\n (\"Description\" php-string php-doc-annotation-tag font-lock-doc-face)\n (\"}\" php-doc-annotation-tag font-lock-doc-face)\n (\" inline tag.\\n *\\n * \" . font-lock-doc-face)\n (\"@property-read\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\"[]\" php-string font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"$\" php-doc-variable-sigil font-lock-doc-face)\n (\"name\" php-variable-name font-lock-doc-face)\n (\"\\n * \" . font-lock-doc-face)\n (\"@ORM\\\\Table\" php-doc-annotation-tag font-lock-doc-face)\n (\"(name=\\\"majormodes\\\")\\n * \" . font-lock-doc-face)\n (\"@ORM\\\\Entity\" php-doc-annotation-tag font-lock-doc-face)\n (\"(repositoryClass=\\\"Emacs\\\\Repository\\\\MajorModeRepository\\\")\\n */\" . font-lock-doc-face)\n (\"\\n\")\n (\"final\" . php-class-modifier)\n (\" \")\n (\"class\" . php-class-declaration)\n (\" \")\n (\"SampleClass\" . font-lock-type-face)\n (\"\\n{\\n    \")\n (\"/** Const doc-comment */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"const\" . php-keyword)\n (\" \")\n (\"SAMPLE\" . php-constant-assign)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"'SAMPLE'\" . php-string)\n (\";\\n    \")\n (\"/** \" . font-lock-doc-face)\n (\"@var\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\" sample property doc-comment */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"private\" . php-keyword)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"name\" . php-variable-name)\n (\";\\n\\n    \")\n (\"/**\\n     * \" . font-lock-doc-face)\n (\"@param\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"$\" php-doc-variable-sigil font-lock-doc-face)\n (\"name\" php-variable-name font-lock-doc-face)\n (\"\\n     */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"__construct\" . php-function-name)\n (\"(\")\n (\"$\" . php-variable-sigil)\n (\"name\" . php-variable-name)\n (\")\\n    {\\n        \")\n (\"$\" . php-this-sigil)\n (\"this\" . php-this)\n (\"->\" . php-object-op)\n (\"name\" . php-property-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"name\" . php-variable-name)\n (\"; \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"comment in after code\\n\" . font-lock-comment-face)\n (\"\\n        \")\n (\"/** \" . font-lock-doc-face)\n (\"@var\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\"|\" php-string font-lock-doc-face)\n (\"bool\" font-lock-type-face php-string font-lock-doc-face)\n (\"|\" php-string font-lock-doc-face)\n (\"array\" font-lock-type-face php-string font-lock-doc-face)\n (\"[]|ArrayObject\" php-string font-lock-doc-face)\n (\" */\" . font-lock-doc-face)\n (\"\\n        \")\n (\"$\" . php-variable-sigil)\n (\"foo\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"hoge\" . php-function-call-traditional)\n (\"();\\n\\n        \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"one-line comment\\n\" . font-lock-comment-face)\n (\"        \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"@annotation This is NOT annotation. 4\\n\" . font-lock-comment-face)\n (\"\\n        \")\n (\"/** \" . font-lock-doc-face)\n (\"@var\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"int\" font-lock-type-face php-string font-lock-doc-face)\n (\" internal linter variable */\" . font-lock-doc-face)\n (\"\\n        \")\n (\"$\" . php-variable-sigil)\n (\"offset\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" 0;\\n    }\\n\\n    \")\n (\"/**\\n     * Summary\\n     *\\n     * \" . font-lock-doc-face)\n (\"@throws\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"\\\\RuntimeException\" php-string font-lock-doc-face)\n (\"\\n     */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"test\" . php-function-name)\n (\"()\\n    {\\n        \")\n (\"throw\" . php-keyword)\n (\" \")\n (\"new\" . php-keyword)\n (\" \")\n (\"\\\\RuntimeException\" . font-lock-type-face)\n (\";\\n    }\\n}\\n\"))\n"
  },
  {
    "path": "tests/lang/doc-comment/comments.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"/**\\n * File level doc-comment\\n *\\n * \" . font-lock-doc-face)\n (\"@copyright\" php-doc-annotation-tag font-lock-doc-face)\n (\" 1999, 2000, 2001, 2003, 2004 Turadg Aleahmad\\n * \" . font-lock-doc-face)\n (\"@copyright\" php-doc-annotation-tag font-lock-doc-face)\n (\" 2008 Aaron S. Hawley\\n * \" . font-lock-doc-face)\n (\"@copyright\" php-doc-annotation-tag font-lock-doc-face)\n (\" 2011, 2012, 2013, 2014, 2015, 2016 Eric James Michael Ritz\\n * \" . font-lock-doc-face)\n (\"@author\" php-doc-annotation-tag font-lock-doc-face)\n (\"    USAMI Kenta <tadsan@pixiv.com>\\n * \" . font-lock-doc-face)\n (\"@link\" php-doc-annotation-tag font-lock-doc-face)\n (\"      https://github.com/emacs-php/php-mode\\n * \" . font-lock-doc-face)\n (\"@package\" php-doc-annotation-tag font-lock-doc-face)\n (\"   \" . font-lock-doc-face)\n (\"Emacs\\\\PHPMode\" php-string font-lock-doc-face)\n (\"\\n */\" . font-lock-doc-face)\n (\"\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"one-line comment\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"@annotation This is NOT annotation. 1\\n\" . font-lock-comment-face)\n (\"\\n\")\n (\"/*\" . font-lock-comment-delimiter-face)\n (\"------------------------------------------------\\n  Multi-line comment\\n\\n * @annotation This is NOT annotation. 2\\n -------------------------------------------------*/\" . font-lock-comment-face)\n (\"\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"/**\\n\" . font-lock-comment-face)\n (\"//  \" . font-lock-comment-delimiter-face)\n (\"* Comment outed class implementation\\n\" . font-lock-comment-face)\n (\"//  \" . font-lock-comment-delimiter-face)\n (\"*\\n\" . font-lock-comment-face)\n (\"//  \" . font-lock-comment-delimiter-face)\n (\"* @annotation This is NOT annotation. 3\\n\" . font-lock-comment-face)\n (\"//  \" . font-lock-comment-delimiter-face)\n (\"*/\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"class CommentOuted\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"{\\n\" . font-lock-comment-face)\n (\"// \" . font-lock-comment-delimiter-face)\n (\"}\\n\" . font-lock-comment-face)\n (\"\\n\")\n (\"/**\\n * Class level doc-comment\\n *\\n * Description \" . font-lock-doc-face)\n (\"{@internal \" php-doc-annotation-tag font-lock-doc-face)\n (\"Description\" php-string php-doc-annotation-tag font-lock-doc-face)\n (\"}\" php-doc-annotation-tag font-lock-doc-face)\n (\" inline tag.\\n *\\n * \" . font-lock-doc-face)\n (\"@property-read\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\"[]\" php-string font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"$\" php-doc-variable-sigil font-lock-doc-face)\n (\"name\" php-variable-name font-lock-doc-face)\n (\"\\n * \" . font-lock-doc-face)\n (\"@ORM\\\\Table\" php-doc-annotation-tag font-lock-doc-face)\n (\"(name=\\\"majormodes\\\")\\n * \" . font-lock-doc-face)\n (\"@ORM\\\\Entity\" php-doc-annotation-tag font-lock-doc-face)\n (\"(repositoryClass=\\\"Emacs\\\\Repository\\\\MajorModeRepository\\\")\\n */\" . font-lock-doc-face)\n (\"\\n\")\n (\"final\" . php-class-modifier)\n (\" \")\n (\"class\" . php-class-declaration)\n (\" \")\n (\"SampleClass\" . font-lock-type-face)\n (\"\\n{\\n    \")\n (\"/** Const doc-comment */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"const\" . php-keyword)\n (\" \")\n (\"SAMPLE\" . php-constant-assign)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"'SAMPLE'\" . php-string)\n (\";\\n    \")\n (\"/** \" . font-lock-doc-face)\n (\"@var\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\" sample property doc-comment */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"private\" . php-keyword)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"name\" . php-variable-name)\n (\";\\n\\n    \")\n (\"/**\\n     * \" . font-lock-doc-face)\n (\"@param\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"$\" php-doc-variable-sigil font-lock-doc-face)\n (\"name\" php-variable-name font-lock-doc-face)\n (\"\\n     */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"__construct\" . php-function-name)\n (\"(\")\n (\"$\" . php-variable-sigil)\n (\"name\" . php-variable-name)\n (\")\\n    {\\n        \")\n (\"$\" . php-this-sigil)\n (\"this\" . php-this)\n (\"->\" . php-object-op)\n (\"name\" . php-property-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"name\" . php-variable-name)\n (\"; \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"comment in after code\\n\" . font-lock-comment-face)\n (\"\\n        \")\n (\"/** \" . font-lock-doc-face)\n (\"@var\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\"|\" php-string font-lock-doc-face)\n (\"bool\" font-lock-type-face php-string font-lock-doc-face)\n (\"|\" php-string font-lock-doc-face)\n (\"array\" font-lock-type-face php-string font-lock-doc-face)\n (\"[]|ArrayObject\" php-string font-lock-doc-face)\n (\" */\" . font-lock-doc-face)\n (\"\\n        \")\n (\"$\" . php-variable-sigil)\n (\"foo\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"hoge\" . php-function-call-traditional)\n (\"();\\n\\n        \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"one-line comment\\n\" . font-lock-comment-face)\n (\"        \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"@annotation This is NOT annotation. 4\\n\" . font-lock-comment-face)\n (\"\\n        \")\n (\"/** \" . font-lock-doc-face)\n (\"@var\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"int\" font-lock-type-face php-string font-lock-doc-face)\n (\" internal linter variable */\" . font-lock-doc-face)\n (\"\\n        \")\n (\"$\" . php-variable-sigil)\n (\"offset\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" 0;\\n    }\\n\\n    \")\n (\"/**\\n     * Summary\\n     *\\n     * \" . font-lock-doc-face)\n (\"@throws\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"\\\\RuntimeException\" php-string font-lock-doc-face)\n (\"\\n     */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"test\" . php-function-name)\n (\"()\\n    {\\n        \")\n (\"throw\" . php-keyword)\n (\" \")\n (\"new\" . php-keyword)\n (\" \")\n (\"\\\\RuntimeException\" . font-lock-type-face)\n (\";\\n    }\\n}\\n\"))\n"
  },
  {
    "path": "tests/lang/doc-comment/inheritdoc.php",
    "content": "<?php\n\n/**\n * {@inheritdoc}\n */\n"
  },
  {
    "path": "tests/lang/doc-comment/inheritdoc.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"/**\\n * \" . font-lock-doc-face)\n (\"{@inheritdoc}\" php-doc-annotation-tag font-lock-doc-face)\n (\"\\n */\" . font-lock-doc-face)\n (\"\\n\"))\n"
  },
  {
    "path": "tests/lang/doc-comment/issue-8.php",
    "content": "<?php\n\n/**\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/8\n *\n * The code below contains annotations in the comments which begin\n * with the '@' character.  The highlighting for these annotations\n * should be different from that used for comments.  At the very least\n * php-mode should highlight the part up to the first backslash.\n */\n\n/**\n * @ORM\\Entity\n * @ORM\\Table(name=\"product\")\n */\nclass Product\n{\n    /**\n     * @ORM\\Id\n     * @ORM\\Column(type=\"integer\")\n     * @ORM\\GeneratedValue(strategy=\"AUTO\")\n     */\n    protected $id;\n\n    /**\n     * @ORM\\Column(type=\"string\", length=100)\n     */\n    protected $name;\n\n    /**\n     * @ORM\\Column(type=\"decimal\", scale=2)\n     */\n    protected $price;\n\n    /**\n     * @ORM\\Column(type=\"text\")\n     */\n    protected $description;\n}"
  },
  {
    "path": "tests/lang/doc-comment/issue-8.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"/**\\n * Github Issue:    https://github.com/emacs-php/php-mode/issues/8\\n *\\n * The code below contains annotations in the comments which begin\\n * with the '@' character.  The highlighting for these annotations\\n * should be different from that used for comments.  At the very least\\n * php-mode should highlight the part up to the first backslash.\\n */\" . font-lock-doc-face)\n (\"\\n\\n\")\n (\"/**\\n * \" . font-lock-doc-face)\n (\"@ORM\\\\Entity\" php-doc-annotation-tag font-lock-doc-face)\n (\"\\n * \" . font-lock-doc-face)\n (\"@ORM\\\\Table\" php-doc-annotation-tag font-lock-doc-face)\n (\"(name=\\\"product\\\")\\n */\" . font-lock-doc-face)\n (\"\\n\")\n (\"class\" . php-class-declaration)\n (\" \")\n (\"Product\" . font-lock-type-face)\n (\"\\n{\\n    \")\n (\"/**\\n     * \" . font-lock-doc-face)\n (\"@ORM\\\\Id\" php-doc-annotation-tag font-lock-doc-face)\n (\"\\n     * \" . font-lock-doc-face)\n (\"@ORM\\\\Column\" php-doc-annotation-tag font-lock-doc-face)\n (\"(type=\\\"integer\\\")\\n     * \" . font-lock-doc-face)\n (\"@ORM\\\\GeneratedValue\" php-doc-annotation-tag font-lock-doc-face)\n (\"(strategy=\\\"AUTO\\\")\\n     */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"protected\" . php-keyword)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"id\" . php-variable-name)\n (\";\\n\\n    \")\n (\"/**\\n     * \" . font-lock-doc-face)\n (\"@ORM\\\\Column\" php-doc-annotation-tag font-lock-doc-face)\n (\"(type=\\\"string\\\", length=100)\\n     */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"protected\" . php-keyword)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"name\" . php-variable-name)\n (\";\\n\\n    \")\n (\"/**\\n     * \" . font-lock-doc-face)\n (\"@ORM\\\\Column\" php-doc-annotation-tag font-lock-doc-face)\n (\"(type=\\\"decimal\\\", scale=2)\\n     */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"protected\" . php-keyword)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"price\" . php-variable-name)\n (\";\\n\\n    \")\n (\"/**\\n     * \" . font-lock-doc-face)\n (\"@ORM\\\\Column\" php-doc-annotation-tag font-lock-doc-face)\n (\"(type=\\\"text\\\")\\n     */\" . font-lock-doc-face)\n (\"\\n    \")\n (\"protected\" . php-keyword)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"description\" . php-variable-name)\n (\";\\n}\"))\n"
  },
  {
    "path": "tests/lang/doc-comment/return-type.php",
    "content": "<?php\n\n/**\n * Test for type annotation in doc comment\n *\n * The specification is defined in PSR-5 (draft) Appendix A. Types.\n * This implementation contains unstandardized specification.\n *\n * @see https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc.md#appendix-a-types\n */\n\n// Test for premitive type (int)\n\n/** @return int   A integer value */\n/** @return ?int  A nullable integer value */\n/** @return int[] A list of integer values */\n\n\n// Test for class type (DateTime)\n\n/** @return DateTime   A DateTime object value */\n/** @return ?DateTime  A nullable DateTime object value */\n/** @return DateTime[] A list of DateTime object values */\n\n\n// Test for class type (stdClass)\n\n/** @return stdClass   A stdClass object value */\n/** @return ?stdClass  A nullable stdClass object value */\n/** @return stdClass[] A list of stdClass object values */\n\n// Test for class type (\\App\\User)\n\n/** @return \\App\\User   A \\App\\User object value */\n/** @return ?\\App\\User  A nullable \\App\\User object value */\n/** @return \\App\\User[] A list of \\App\\User object values */\n\n// Test for multiple types\n\n/** @return int|string    Multiple types by int and string */\n/** @return int[]|string  Multiple types by list of int and string */\n/** @return int|stdClass    Multiple types by int and stdClass */\n/** @return int|\\App\\User    Multiple types by int and \\App\\User */\n/** @return DateTime|int    Multiple types by DateTime and int */\n/** @return \\App\\User|int    Multiple types by \\App\\User and int */\n\n// Test for $this\n\n/** @return $this this is special variable */\n/** @return $that that is NOT special variable */\n"
  },
  {
    "path": "tests/lang/doc-comment/return-type.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"/**\\n * Test for type annotation in doc comment\\n *\\n * The specification is defined in PSR-5 (draft) Appendix A. Types.\\n * This implementation contains unstandardized specification.\\n *\\n * \" . font-lock-doc-face)\n (\"@see\" php-doc-annotation-tag font-lock-doc-face)\n (\" https://github.com/php-fig/fig-standards/blob/master/proposed/phpdoc.md#appendix-a-types\\n */\" . font-lock-doc-face)\n (\"\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Test for premitive type (int)\\n\" . font-lock-comment-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"int\" font-lock-type-face php-string font-lock-doc-face)\n (\"   A \" . font-lock-doc-face)\n (\"integer\" font-lock-type-face font-lock-doc-face)\n (\" value */\" . font-lock-doc-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"?\" php-string font-lock-doc-face)\n (\"int\" font-lock-type-face php-string font-lock-doc-face)\n (\"  A nullable \" . font-lock-doc-face)\n (\"integer\" font-lock-type-face font-lock-doc-face)\n (\" value */\" . font-lock-doc-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"int\" font-lock-type-face php-string font-lock-doc-face)\n (\"[]\" php-string font-lock-doc-face)\n (\" A \" . font-lock-doc-face)\n (\"list\" font-lock-type-face font-lock-doc-face)\n (\" of \" . font-lock-doc-face)\n (\"integer\" font-lock-type-face font-lock-doc-face)\n (\" values */\" . font-lock-doc-face)\n (\"\\n\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Test for class type (DateTime)\\n\" . font-lock-comment-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"DateTime\" php-string font-lock-doc-face)\n (\"   A DateTime \" . font-lock-doc-face)\n (\"object\" font-lock-type-face font-lock-doc-face)\n (\" value */\" . font-lock-doc-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"?DateTime\" php-string font-lock-doc-face)\n (\"  A nullable DateTime \" . font-lock-doc-face)\n (\"object\" font-lock-type-face font-lock-doc-face)\n (\" value */\" . font-lock-doc-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"DateTime[]\" php-string font-lock-doc-face)\n (\" A \" . font-lock-doc-face)\n (\"list\" font-lock-type-face font-lock-doc-face)\n (\" of DateTime \" . font-lock-doc-face)\n (\"object\" font-lock-type-face font-lock-doc-face)\n (\" values */\" . font-lock-doc-face)\n (\"\\n\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Test for class type (stdClass)\\n\" . font-lock-comment-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"stdClass\" php-string font-lock-doc-face)\n (\"   A stdClass \" . font-lock-doc-face)\n (\"object\" font-lock-type-face font-lock-doc-face)\n (\" value */\" . font-lock-doc-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"?stdClass\" php-string font-lock-doc-face)\n (\"  A nullable stdClass \" . font-lock-doc-face)\n (\"object\" font-lock-type-face font-lock-doc-face)\n (\" value */\" . font-lock-doc-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"stdClass[]\" php-string font-lock-doc-face)\n (\" A \" . font-lock-doc-face)\n (\"list\" font-lock-type-face font-lock-doc-face)\n (\" of stdClass \" . font-lock-doc-face)\n (\"object\" font-lock-type-face font-lock-doc-face)\n (\" values */\" . font-lock-doc-face)\n (\"\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Test for class type (\\\\App\\\\User)\\n\" . font-lock-comment-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"\\\\App\\\\User\" php-string font-lock-doc-face)\n (\"   A \\\\App\\\\User \" . font-lock-doc-face)\n (\"object\" font-lock-type-face font-lock-doc-face)\n (\" value */\" . font-lock-doc-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"?\\\\App\\\\User\" php-string font-lock-doc-face)\n (\"  A nullable \\\\App\\\\User \" . font-lock-doc-face)\n (\"object\" font-lock-type-face font-lock-doc-face)\n (\" value */\" . font-lock-doc-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"\\\\App\\\\User[]\" php-string font-lock-doc-face)\n (\" A \" . font-lock-doc-face)\n (\"list\" font-lock-type-face font-lock-doc-face)\n (\" of \\\\App\\\\User \" . font-lock-doc-face)\n (\"object\" font-lock-type-face font-lock-doc-face)\n (\" values */\" . font-lock-doc-face)\n (\"\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Test for multiple types\\n\" . font-lock-comment-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"int\" font-lock-type-face php-string font-lock-doc-face)\n (\"|\" php-string font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\"    Multiple types by \" . font-lock-doc-face)\n (\"int\" font-lock-type-face font-lock-doc-face)\n (\" and \" . font-lock-doc-face)\n (\"string\" font-lock-type-face font-lock-doc-face)\n (\" */\" . font-lock-doc-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"int\" font-lock-type-face php-string font-lock-doc-face)\n (\"[]|\" php-string font-lock-doc-face)\n (\"string\" font-lock-type-face php-string font-lock-doc-face)\n (\"  Multiple types by \" . font-lock-doc-face)\n (\"list\" font-lock-type-face font-lock-doc-face)\n (\" of \" . font-lock-doc-face)\n (\"int\" font-lock-type-face font-lock-doc-face)\n (\" and \" . font-lock-doc-face)\n (\"string\" font-lock-type-face font-lock-doc-face)\n (\" */\" . font-lock-doc-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"int\" font-lock-type-face php-string font-lock-doc-face)\n (\"|stdClass\" php-string font-lock-doc-face)\n (\"    Multiple types by \" . font-lock-doc-face)\n (\"int\" font-lock-type-face font-lock-doc-face)\n (\" and stdClass */\" . font-lock-doc-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"int\" font-lock-type-face php-string font-lock-doc-face)\n (\"|\\\\App\\\\User\" php-string font-lock-doc-face)\n (\"    Multiple types by \" . font-lock-doc-face)\n (\"int\" font-lock-type-face font-lock-doc-face)\n (\" and \\\\App\\\\User */\" . font-lock-doc-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"DateTime|\" php-string font-lock-doc-face)\n (\"int\" font-lock-type-face php-string font-lock-doc-face)\n (\"    Multiple types by DateTime and \" . font-lock-doc-face)\n (\"int\" font-lock-type-face font-lock-doc-face)\n (\" */\" . font-lock-doc-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"\\\\App\\\\User|\" php-string font-lock-doc-face)\n (\"int\" font-lock-type-face php-string font-lock-doc-face)\n (\"    Multiple types by \\\\App\\\\User and \" . font-lock-doc-face)\n (\"int\" font-lock-type-face font-lock-doc-face)\n (\" */\" . font-lock-doc-face)\n (\"\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Test for $this\\n\" . font-lock-comment-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"$\" php-doc-$this-sigil php-doc-variable-sigil font-lock-doc-face)\n (\"this\" php-doc-$this php-variable-name font-lock-doc-face)\n (\" this is special variable */\" . font-lock-doc-face)\n (\"\\n\")\n (\"/** \" . font-lock-doc-face)\n (\"@return\" php-doc-annotation-tag font-lock-doc-face)\n (\" \" . font-lock-doc-face)\n (\"$\" php-doc-variable-sigil font-lock-doc-face)\n (\"that\" php-variable-name font-lock-doc-face)\n (\" that is NOT special variable */\" . font-lock-doc-face)\n (\"\\n\"))\n"
  },
  {
    "path": "tests/lang/errorcontrol.php",
    "content": "<?php\n\nnew stdClass;\n@new stdClass;\necho @a.@b;\necho @a;\necho @$a;\n\n@fopen('php://memory', 'rw');\n"
  },
  {
    "path": "tests/lang/errorcontrol.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"new\" . php-keyword)\n (\" \")\n (\"stdClass\" . font-lock-type-face)\n (\";\\n\")\n (\"@new\" . php-keyword)\n (\" \")\n (\"stdClass\" . font-lock-type-face)\n (\";\\n\")\n (\"echo\" . php-keyword)\n (\" \")\n (\"@\" . php-errorcontrol-op)\n (\"a.\")\n (\"@\" . php-errorcontrol-op)\n (\"b;\\n\")\n (\"echo\" . php-keyword)\n (\" \")\n (\"@\" . php-errorcontrol-op)\n (\"a;\\n\")\n (\"echo\" . php-keyword)\n (\" \")\n (\"@\" . php-errorcontrol-op)\n (\"$\" . php-variable-sigil)\n (\"a\" . php-variable-name)\n (\";\\n\\n\")\n (\"@\" . php-errorcontrol-op)\n (\"fopen(\")\n (\"'php://memory'\" . php-string)\n (\", \")\n (\"'rw'\" . php-string)\n (\");\\n\"))\n"
  },
  {
    "path": "tests/lang/function/calls.php",
    "content": "<?php\n\nif (isset($foo)) {\n    1+bar()+foo();\n}\n\n$foo->string();\n$foo->isset();\n\n\n$a->b();\n$a = a();\n$aaa = aaa();\n$_aa = _aa();\n$a_a = a_a();\n$aa_ = aa_();\n$a1c = a1c();\n$あ = あ();\n$_a = $a();\n"
  },
  {
    "path": "tests/lang/function/calls.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"if\" . php-keyword)\n (\" (\")\n (\"isset\" . php-keyword)\n (\"(\")\n (\"$\" . php-variable-sigil)\n (\"foo\" . php-variable-name)\n (\")) {\\n    1\")\n (\"+\" . php-arithmetic-op)\n (\"bar\" . php-function-call-traditional)\n (\"()+\")\n (\"foo\" . php-function-call-traditional)\n (\"();\\n}\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"foo\" . php-variable-name)\n (\"->\" . php-object-op)\n (\"string\" . php-method-call-traditional)\n (\"();\\n\")\n (\"$\" . php-variable-sigil)\n (\"foo\" . php-variable-name)\n (\"->\" . php-object-op)\n (\"isset\" . php-method-call-traditional)\n (\"();\\n\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"a\" . php-variable-name)\n (\"->\" . php-object-op)\n (\"b\" . php-method-call-traditional)\n (\"();\\n\")\n (\"$\" . php-variable-sigil)\n (\"a\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"a\" . php-function-call-traditional)\n (\"();\\n\")\n (\"$\" . php-variable-sigil)\n (\"aaa\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"aaa\" . php-function-call-traditional)\n (\"();\\n\")\n (\"$\" . php-variable-sigil)\n (\"_aa\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"_aa\" . php-function-call-traditional)\n (\"();\\n\")\n (\"$\" . php-variable-sigil)\n (\"a_a\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"a_a\" . php-function-call-traditional)\n (\"();\\n\")\n (\"$\" . php-variable-sigil)\n (\"aa_\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"aa_\" . php-function-call-traditional)\n (\"();\\n\")\n (\"$\" . php-variable-sigil)\n (\"a1c\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"a1c\" . php-function-call-traditional)\n (\"();\\n\")\n (\"$\" . php-variable-sigil)\n (\"あ\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"あ\" . php-function-call-traditional)\n (\"();\\n\")\n (\"$\" . php-variable-sigil)\n (\"_a\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"a\" . php-variable-name)\n (\"();\\n\"))\n"
  },
  {
    "path": "tests/lang/function/closure.php",
    "content": "<?php\n\nis_object(static function () {\n    // ###php-mode-test### ((indent 4))\n});\n\nis_object(static function (): void {\n    // ###php-mode-test### ((indent 4))\n});\n"
  },
  {
    "path": "tests/lang/function/closure.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"is_object\" . php-function-call-traditional)\n (\"(\")\n (\"static\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" () {\\n    \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"###php-mode-test### ((indent 4))\\n\" . font-lock-comment-face)\n (\"});\\n\\n\")\n (\"is_object\" . php-function-call-traditional)\n (\"(\")\n (\"static\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" (): \")\n (\"void\" . font-lock-type-face)\n (\" {\\n    \")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"###php-mode-test### ((indent 4))\\n\" . font-lock-comment-face)\n (\"});\\n\"))\n"
  },
  {
    "path": "tests/lang/import/import-constant.php",
    "content": "<?php\nnamespace Foo;\n\nuse const Foo\\BAR;\nuse const Foo\\{BUZ, BUZBUZ};\nuse const PHP_VERSION;\n\nconst FOO = 'bar';\n"
  },
  {
    "path": "tests/lang/import/import-constant.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\")\n (\"namespace\" . php-namespace-declaration)\n (\" \")\n (\"Foo\" . font-lock-type-face)\n (\";\\n\\n\")\n (\"use\" . php-import-declaration)\n (\" \")\n (\"const\" . php-keyword)\n (\" \")\n (\"Foo\\\\BAR\" . php-constant-assign)\n (\";\\n\")\n (\"use\" . php-import-declaration)\n (\" \")\n (\"const\" . php-keyword)\n (\" \")\n (\"Foo\\\\{BUZ\" . php-constant-assign)\n (\", \")\n (\"BUZBUZ}\" . php-constant-assign)\n (\";\\n\")\n (\"use\" . php-import-declaration)\n (\" \")\n (\"const\" . php-keyword)\n (\" \")\n (\"PHP_VERSION\" . php-constant-assign)\n (\";\\n\\n\")\n (\"const\" . php-keyword)\n (\" \")\n (\"FOO\" . php-constant-assign)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" \")\n (\"'bar'\" . php-string)\n (\";\\n\"))\n"
  },
  {
    "path": "tests/lang/import/import-function.php",
    "content": "<?php\nnamespace Foo;\n\nuse function var_dump;\nuse function is_array, is_string, is_dir;\nuse function Safe\\json_encode;\nuse function Safe\\{file_get_contents, json_decode};\n"
  },
  {
    "path": "tests/lang/import/import-function.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\")\n (\"namespace\" . php-namespace-declaration)\n (\" \")\n (\"Foo\" . font-lock-type-face)\n (\";\\n\\n\")\n (\"use\" . php-import-declaration)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"var_dump\" . php-function-name)\n (\";\\n\")\n (\"use\" . php-import-declaration)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"is_array\" . php-function-name)\n (\", \")\n (\"is_string\" . php-function-name)\n (\", \")\n (\"is_dir\" . php-function-name)\n (\";\\n\")\n (\"use\" . php-import-declaration)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"Safe\\\\json_encode\" . php-function-name)\n (\";\\n\")\n (\"use\" . php-import-declaration)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"Safe\\\\{file_get_contents\" . php-function-name)\n (\", \")\n (\"json_decode}\" . php-function-name)\n (\";\\n\"))\n"
  },
  {
    "path": "tests/lang/magical-constants/echo.php",
    "content": "<?php\n\necho __LINE__, PHP_EOL;\necho __FILE__, PHP_EOL;\necho __FILE__, PHP_EOL;\necho __FUNCTION__, PHP_EOL;\necho __CLASS__, PHP_EOL;\necho __TRAIT__, PHP_EOL;\necho __METHOD__, PHP_EOL;\necho __NAMESPACE__, PHP_EOL;\necho \\Directory::class, PHP_EOL;\n"
  },
  {
    "path": "tests/lang/magical-constants/echo.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"echo\" . php-keyword)\n (\" \")\n (\"__LINE__\" . php-magical-constant)\n (\", \")\n (\"PHP_EOL\" . php-constant)\n (\";\\n\")\n (\"echo\" . php-keyword)\n (\" \")\n (\"__FILE__\" . php-magical-constant)\n (\", \")\n (\"PHP_EOL\" . php-constant)\n (\";\\n\")\n (\"echo\" . php-keyword)\n (\" \")\n (\"__FILE__\" . php-magical-constant)\n (\", \")\n (\"PHP_EOL\" . php-constant)\n (\";\\n\")\n (\"echo\" . php-keyword)\n (\" \")\n (\"__FUNCTION__\" . php-magical-constant)\n (\", \")\n (\"PHP_EOL\" . php-constant)\n (\";\\n\")\n (\"echo\" . php-keyword)\n (\" \")\n (\"__CLASS__\" . php-magical-constant)\n (\", \")\n (\"PHP_EOL\" . php-constant)\n (\";\\n\")\n (\"echo\" . php-keyword)\n (\" \")\n (\"__TRAIT__\" . php-magical-constant)\n (\", \")\n (\"PHP_EOL\" . php-constant)\n (\";\\n\")\n (\"echo\" . php-keyword)\n (\" \")\n (\"__METHOD__\" . php-magical-constant)\n (\", \")\n (\"PHP_EOL\" . php-constant)\n (\";\\n\")\n (\"echo\" . php-keyword)\n (\" \")\n (\"__NAMESPACE__\" . php-magical-constant)\n (\", \")\n (\"PHP_EOL\" . php-constant)\n (\";\\n\")\n (\"echo\" . php-keyword)\n (\" \")\n (\"\\\\Directory\" . php-constant)\n (\"::\" . php-paamayim-nekudotayim)\n (\"class\" . php-magical-constant)\n (\", \")\n (\"PHP_EOL\" . php-constant)\n (\";\\n\"))\n"
  },
  {
    "path": "tests/lang/try-cactch/multiple.php",
    "content": "<?php\n\ntry {\n} catch (ErrorException | PDOException $e) {\n} catch (Foo | Bar | Buz | Fuga $e) {\n} catch (Throwable $e) {\n}\n"
  },
  {
    "path": "tests/lang/try-cactch/multiple.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"try\" . php-keyword)\n (\" {\\n} \")\n (\"catch\" . php-keyword)\n (\" (\")\n (\"ErrorException\" . font-lock-type-face)\n (\" | \")\n (\"PDOException\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"e\" . php-variable-name)\n (\") {\\n} \")\n (\"catch\" . php-keyword)\n (\" (\")\n (\"Foo\" . font-lock-type-face)\n (\" | \")\n (\"Bar\" . font-lock-type-face)\n (\" | \")\n (\"Buz\" . font-lock-type-face)\n (\" | \")\n (\"Fuga\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"e\" . php-variable-name)\n (\") {\\n} \")\n (\"catch\" . php-keyword)\n (\" (\")\n (\"Throwable\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"e\" . php-variable-name)\n (\") {\\n}\\n\"))\n"
  },
  {
    "path": "tests/lang/types/cast.php",
    "content": "<?php\n\n$var = 1;\n\n(array)$var;\n(binary)$var;\n(bool)$var;\n(boolean)$var;\n(float)$var;\n(int)$var;\n(integer)$var;\n(object)$var;\n(real)$var;\n(string)$var;\n(unset)$var;\n"
  },
  {
    "path": "tests/lang/types/cast.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"$\" . php-variable-sigil)\n (\"var\" . php-variable-name)\n (\" \")\n (\"=\" . php-assignment-op)\n (\" 1;\\n\\n(\")\n (\"array\" . font-lock-type-face)\n (\")\")\n (\"$\" . php-variable-sigil)\n (\"var\" . php-variable-name)\n (\";\\n(\")\n (\"binary\" . font-lock-type-face)\n (\")\")\n (\"$\" . php-variable-sigil)\n (\"var\" . php-variable-name)\n (\";\\n(\")\n (\"bool\" . font-lock-type-face)\n (\")\")\n (\"$\" . php-variable-sigil)\n (\"var\" . php-variable-name)\n (\";\\n(\")\n (\"boolean\" . font-lock-type-face)\n (\")\")\n (\"$\" . php-variable-sigil)\n (\"var\" . php-variable-name)\n (\";\\n(\")\n (\"float\" . font-lock-type-face)\n (\")\")\n (\"$\" . php-variable-sigil)\n (\"var\" . php-variable-name)\n (\";\\n(\")\n (\"int\" . font-lock-type-face)\n (\")\")\n (\"$\" . php-variable-sigil)\n (\"var\" . php-variable-name)\n (\";\\n(\")\n (\"integer\" . font-lock-type-face)\n (\")\")\n (\"$\" . php-variable-sigil)\n (\"var\" . php-variable-name)\n (\";\\n(\")\n (\"object\" . font-lock-type-face)\n (\")\")\n (\"$\" . php-variable-sigil)\n (\"var\" . php-variable-name)\n (\";\\n(\")\n (\"real\" . font-lock-type-face)\n (\")\")\n (\"$\" . php-variable-sigil)\n (\"var\" . php-variable-name)\n (\";\\n(\")\n (\"string\" . font-lock-type-face)\n (\")\")\n (\"$\" . php-variable-sigil)\n (\"var\" . php-variable-name)\n (\";\\n(\")\n (\"unset\" . php-keyword)\n (\")\")\n (\"$\" . php-variable-sigil)\n (\"var\" . php-variable-name)\n (\";\\n\"))\n"
  },
  {
    "path": "tests/lang/types/function.php",
    "content": "<?php\n\nfunction (bool $args) {};\nfunction (boolean $args) {};\nfunction (int $args) {};\nfunction (integer $args) {};\nfunction (float $args) {};\nfunction (double $args) {};\nfunction (real $args) {};\nfunction (string $args) {};\nfunction (object $args) {};\nfunction (resource $args) {};\n"
  },
  {
    "path": "tests/lang/types/function.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"function\" . php-keyword)\n (\" (\")\n (\"bool\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"args\" . php-variable-name)\n (\") {};\\n\")\n (\"function\" . php-keyword)\n (\" (\")\n (\"boolean\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"args\" . php-variable-name)\n (\") {};\\n\")\n (\"function\" . php-keyword)\n (\" (\")\n (\"int\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"args\" . php-variable-name)\n (\") {};\\n\")\n (\"function\" . php-keyword)\n (\" (\")\n (\"integer\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"args\" . php-variable-name)\n (\") {};\\n\")\n (\"function\" . php-keyword)\n (\" (\")\n (\"float\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"args\" . php-variable-name)\n (\") {};\\n\")\n (\"function\" . php-keyword)\n (\" (\")\n (\"double\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"args\" . php-variable-name)\n (\") {};\\n\")\n (\"function\" . php-keyword)\n (\" (\")\n (\"real\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"args\" . php-variable-name)\n (\") {};\\n\")\n (\"function\" . php-keyword)\n (\" (\")\n (\"string\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"args\" . php-variable-name)\n (\") {};\\n\")\n (\"function\" . php-keyword)\n (\" (\")\n (\"object\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"args\" . php-variable-name)\n (\") {};\\n\")\n (\"function\" . php-keyword)\n (\" (\")\n (\"resource\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"args\" . php-variable-name)\n (\") {};\\n\"))\n"
  },
  {
    "path": "tests/lang/types/keywords.php",
    "content": "<?php\n\n__halt_compiler();\n\nbool;\nboolean;\nint;\ninteger;\nfloat;\ndouble;\nreal;\nstring;\nobject;\nresource;\nmixed;\n"
  },
  {
    "path": "tests/lang/types/keywords.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"__halt_compiler\" . php-keyword)\n (\"();\\n\\n\")\n (\"bool\" . font-lock-type-face)\n (\";\\n\")\n (\"boolean\" . font-lock-type-face)\n (\";\\n\")\n (\"int\" . font-lock-type-face)\n (\";\\n\")\n (\"integer\" . font-lock-type-face)\n (\";\\n\")\n (\"float\" . font-lock-type-face)\n (\";\\n\")\n (\"double\" . font-lock-type-face)\n (\";\\n\")\n (\"real\" . font-lock-type-face)\n (\";\\n\")\n (\"string\" . font-lock-type-face)\n (\";\\n\")\n (\"object\" . font-lock-type-face)\n (\";\\nresource;\\n\")\n (\"mixed\" . font-lock-type-face)\n (\";\\n\"))\n"
  },
  {
    "path": "tests/language-constructs.php",
    "content": "<?php\n\n/**\n * Test highlighting of language constructs and reserved keywords\n *\n * This test is based on http://php.net/manual/en/reserved.keywords.php and should\n * be updated from the manual when new PHP versions arrive. Built-in functions are\n * not treated differently by php-mode than regular function calls: that means\n * they are not highlighted. Only language constructs like print/die and reserved\n * keywords are, and those are tested here.\n */\n\n// Start:\n__halt_compiler();\nabstract;\nand;\narray();\nas;\nbreak;\ncase;\ncatch;\nclone;\nconst;\ncontinue;\ndeclare;\ndefault;\ndie();\ndo;\necho;\nelse;\nelseif;\nempty();\nenddeclare;\nendfor;\nendforeach;\nendif;\nendswitch;\nendwhile;\neval();\nexit();\nfinal;\nfinally;\nfor;\nforeach;\nfunction;\nglobal;\ngoto;\nif;\ninclude;\ninclude_once;\ninstanceof ClassName;\ninsteadof ClassName;\nisset();\nlist();\nnew ClassName;\nprint;\nprivate;\nprotected;\npublic;\nrequire;\nrequire_once;\nreturn;\nstatic;\nswitch;\nthrow;\ntry;\nunset();\nvar;\nwhile;\nxor;\nyield;\nyield from;\n"
  },
  {
    "path": "tests/namespace-block.php",
    "content": "<?php // ###php-mode-test### ((indent (* 0 c-basic-offset)))\n// ###php-mode-test### ((indent 0))\n\n/**                 // ###php-mode-test### ((indent 0))\n * Block namespace  // ###php-mode-test### ((indent 1))\n */                 // ###php-mode-test### ((indent 1))\nnamespace FooBar // ###php-mode-test### ((indent 0))\n{                // ###php-mode-test### ((indent 0))\n    $i = 0;      // ###php-mode-test### ((indent c-basic-offset))\n    do {         // ###php-mode-test### ((indent c-basic-offset))\n        $i++;    // ###php-mode-test### ((indent (* 2 c-basic-offset)))\n    } while ($i < 100); // ###php-mode-test### ((indent c-basic-offset))\n    // ###php-mode-test### ((indent c-basic-offset))\n    try {                             // ###php-mode-test### ((indent c-basic-offset))\n        throw new \\RuntimeException;  // ###php-mode-test### ((indent (* 2 c-basic-offset)))\n    } catch (\\Error $e) {             // ###php-mode-test### ((indent c-basic-offset))\n        echo \"cached error\", PHP_EOL; // ###php-mode-test### ((indent (* 2 c-basic-offset)))\n    } catch (Error $e) {              // ###php-mode-test### ((indent c-basic-offset))\n        echo \"cached error\", PHP_EOL; // ###php-mode-test### ((indent (* 2 c-basic-offset)))\n    } finally {                       // ###php-mode-test### ((indent c-basic-offset))\n        echo \"finally\", PHP_EOL;      // ###php-mode-test### ((indent (* 2 c-basic-offset)))\n    }                                 // ###php-mode-test### ((indent c-basic-offset))\n    // ###php-mode-test### ((indent c-basic-offset))\n    /**              // ###php-mode-test### ((indent c-basic-offset))\n     * DocComment    // ###php-mode-test### ((indent (1+ c-basic-offset)))\n     */              // ###php-mode-test### ((indent (1+ c-basic-offset)))\n    function hoge()  // ###php-mode-test### ((indent c-basic-offset))\n    {                // ###php-mode-test### ((indent c-basic-offset))\n        // ###php-mode-test### ((indent (* 2 c-basic-offset)))\n    }                // ###php-mode-test### ((indent c-basic-offset))\n    // ###php-mode-test### ((indent c-basic-offset))\n    function fuga() :array // ###php-mode-test### ((indent c-basic-offset))\n    {                      // ###php-mode-test### ((indent c-basic-offset))\n    }                      // ###php-mode-test### ((indent c-basic-offset))\n    // ###php-mode-test### ((indent c-basic-offset))\n    // ###php-mode-test### ((indent c-basic-offset))\n    class Fizz             // ###php-mode-test### ((indent c-basic-offset))\n    {                      // ###php-mode-test### ((indent c-basic-offset))\n        static             // ###php-mode-test### ((indent (* 2 c-basic-offset)))\n            public         // ###php-mode-test### ((indent (* 3 c-basic-offset)))\n            function a(    // ###php-mode-test### ((indent (* 3 c-basic-offset)))\n                array $v   // ###php-mode-test### ((indent (* 4 c-basic-offset)))\n            ):             // ###php-mode-test### ((indent (* 3 c-basic-offset)))\n            string         // ###php-mode-test### ((indent (* 3 c-basic-offset)))\n        {                  // ###php-mode-test### ((indent (* 2 c-basic-offset)))\n            return         // ###php-mode-test### ((indent (* 3 c-basic-offset)))\n                array_pop( // ###php-mode-test### ((indent (* 4 c-basic-offset)))\n                    $v     // ###php-mode-test### ((indent (* 5 c-basic-offset)))\n                )          // ###php-mode-test### ((indent (* 4 c-basic-offset)))\n                ;          // ###php-mode-test### ((indent (* 4 c-basic-offset)))\n        }                  // ###php-mode-test### ((indent (* 2 c-basic-offset)))\n    }                      // ###php-mode-test### ((indent c-basic-offset))\n    // ###php-mode-test### ((indent c-basic-offset))\n    class Buzz            // ###php-mode-test### ((indent c-basic-offset))\n        extends           // ###php-mode-test### ((indent (* 2 c-basic-offset)))\n        Fizz              // ###php-mode-test### ((indent (* 2 c-basic-offset)))\n    {                     // ###php-mode-test### ((indent c-basic-offset))\n        function b // ###php-mode-test### ((indent (* 2 c-basic-offset)))\n            (             // ###php-mode-test### ((indent (* 3 c-basic-offset)))\n                $v        // ###php-mode-test### ((indent (* 4 c-basic-offset)))\n            ) {           // ###php-mode-test### ((indent (* 3 c-basic-offset)))\n            while         // ###php-mode-test### ((indent (* 3 c-basic-offset)))\n                (         // ###php-mode-test### ((indent (* 4 c-basic-offset)))\n                    true  // ###php-mode-test### ((indent (* 5 c-basic-offset)))\n                )         // ###php-mode-test### ((indent (* 4 c-basic-offset)))\n            {             // ###php-mode-test### ((indent (* 3 c-basic-offset)))\n                yield     // ###php-mode-test### ((indent (* 4 c-basic-offset)))\n                    1;    // ###php-mode-test### ((indent (* 5 c-basic-offset)))\n            }             // ###php-mode-test### ((indent (* 3 c-basic-offset)))\n        } // ###php-mode-test### ((indent (* 2 c-basic-offset)))\n    } // ###php-mode-test### ((indent (* 1 c-basic-offset)))\n}     // ###php-mode-test### ((indent (* 0 c-basic-offset)))\n\n// ###php-mode-test### ((indent (* 0 c-basic-offset)))\n"
  },
  {
    "path": "tests/php-mode-test.el",
    "content": ";;; php-mode-test.el --- Tests for php-mode           -*- lexical-binding: t -*-\n\n;; Copyright (C) 2018-2024  Friends of Emacs-PHP development\n;; Copyright (C) 2013 Daniel Hackney\n;;               2014, 2015 Eric James Michael Ritz\n\n;; Author: Daniel Hackney <dan@haxney.org>\n;; Maintainer: USAMI Kenta <tadsan@zonu.me>\n;; URL: https://github.com/emacs-php/php-mode\n;; License: GPL-3.0-or-later\n\n;;; License\n\n;; This program is free software; you can redistribute it and/or modify\n;; it under the terms of the GNU General Public License as published by\n;; the Free Software Foundation, either version 3 of the License, or\n;; (at your option) any later version.\n\n;; This program is distributed in the hope that it will be useful,\n;; but WITHOUT ANY WARRANTY; without even the implied warranty of\n;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\n;; GNU General Public License for more details.\n\n;; You should have received a copy of the GNU General Public License\n;; along with this program.  If not, see <https://www.gnu.org/licenses/>.\n\n;;; Commentary:\n\n;; Automate tests from the \"tests\" directory using `ert', which comes bundled\n;; with Emacs >= 24.1.\n\n;;; Code:\n(require 'php)\n(require 'php-mode)\n(require 'php-mode-debug)\n(require 'php-project)\n(require 'ert)\n(require 'cl-lib)\n(require 'imenu)\n\n;; Work around bug #14325\n;; <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=14325>.\n(c-after-font-lock-init)\n\n(defvar php-mode-test-dir (if load-file-name\n                           (file-name-directory load-file-name)\n                         default-directory)\n  \"Directory containing the `php-mode' test files.\")\n\n(defvar php-mode-test-valid-magics '(indent)\n  \"List of allowed \\\"magic\\\" directives which can appear in test cases.\")\n\n(defvar php-mode-test-magic-regexp \"###php-mode-test### \\\\((.+)\\\\)\"\n  \"Regexp which identifies a magic comment.\")\n\n;; cl-letf does not work for global function on Emacs 24.3 or lower versions\n(when (and (= emacs-major-version 24) (<= emacs-minor-version 3))\n  (defun indent ()))\n\n(defun php-mode-test-process-magics ()\n  \"Process the test directives in the current buffer.\nThese are the ###php-mode-test### comments. Valid magics are\nlisted in `php-mode-test-valid-magics'; no other directives will\nbe processed.\"\n  (cl-letf (((symbol-function 'indent)\n             (lambda (offset)\n               (let ((current-offset (current-indentation)))\n                 (unless (eq current-offset offset)\n                   (warn \"line: %d context: %s\\n\" (line-number-at-pos) (c-guess-basic-syntax))\n                   (list :line (line-number-at-pos)\n                         :expected offset\n                         :actual current-offset))))))\n    (let (directives answers)\n      (save-excursion\n        (goto-char (point-min))\n        (cl-loop while (re-search-forward php-mode-test-magic-regexp nil t)\n                 for directives = (read (buffer-substring (match-beginning 1) (match-end 1)))\n                 for result = (mapcar (lambda (expr)\n                                        (let ((fn (car expr))\n                                              (args (mapcar 'eval (cdr-safe expr))))\n                                          (if (memq fn php-mode-test-valid-magics)\n                                              (apply fn args))))\n                                      directives)\n                 append (cl-remove-if #'null result))))))\n\n(defun php-mode-test--buffer-face-list (buffer)\n  \"Return list of (STRING . FACE) from `BUFFER'.\"\n  (with-temp-buffer\n    (jit-lock-mode -1)\n    (insert (with-current-buffer buffer (buffer-substring (point-min) (point-max))))\n    (goto-char (point-min))\n    (let (retval begin-pos last-face current-face str)\n      (setq last-face (get-text-property (point) 'face))\n      (setq begin-pos (point))\n      (forward-char 1)\n\n      (while (< (point) (point-max))\n        (setq current-face (get-text-property (point) 'face))\n        (unless (equal current-face last-face)\n          (setq str (buffer-substring-no-properties begin-pos (point)))\n          (setq retval (nconc retval (list (cons str last-face))))\n          (setq begin-pos (point))\n          (setq last-face current-face))\n        (forward-char 1))\n      (setq str (buffer-substring-no-properties begin-pos (point)))\n      (nconc retval (list (cons str last-face))))))\n\n(defun php-mode-test--parse-list-file (file-path)\n  \"Return list from `FILE-PATH'.\"\n  (with-temp-buffer\n    (insert-file-contents file-path)\n    (let ((read-circle t))\n      (read (current-buffer)))))\n\n(cl-defmacro with-php-mode-test ((file &key style indent magic custom faces) &rest body)\n  \"Set up environment for testing `php-mode'.\nExecute BODY in a temporary buffer containing the contents of\nFILE, in `php-mode'. Optional keyword `:style' can be used to set\nthe coding style to one of the following:\n\n1. `pear'\n2. `drupal'\n3. `wordpress'\n4. `symfony2'\n5. `psr2'\n\nUsing any other symbol for STYLE results in undefined behavior.\nThe test will use the PHP style by default.\n\nIf the `:custom' keyword is set, customized variables are not reset to\ntheir default state prior to starting the test. Use this if the test should\nrun with specific customizations set.\n\nIf the `:faces' keyword is set, read the file with `.faces' added to that\nfile name and check that the faces of the fonts in the buffer match.\"\n  (declare (indent 1))\n  `(with-temp-buffer\n     (setq php-mode-enable-backup-style-variables nil)\n     (insert-file-contents (expand-file-name ,file php-mode-test-dir))\n     (setq default-directory\n           (expand-file-name \"..\" (expand-file-name ,file php-mode-test-dir)))\n     (php-mode)\n     ,(if (fboundp 'font-lock-ensure)\n          '(font-lock-ensure)\n        '(with-no-warnings (font-lock-fontify-buffer)))\n\n     ,(cl-case style\n        (pear '(php-enable-pear-coding-style))\n        (drupal '(php-enable-drupal-coding-style))\n        (wordpress '(php-enable-wordpress-coding-style))\n        (symfony2 '(php-enable-symfony2-coding-style))\n        (psr2 '(php-enable-psr2-coding-style))\n        (t '(php-enable-default-coding-style)))\n\n     ,(unless custom '(custom-set-variables '(php-lineup-cascaded-calls nil)))\n\n     ,(if indent\n          '(let ((inhibit-message t)) (indent-region (point-min) (point-max))))\n     ,(if magic\n          `(should (equal\n                    (cons ,file nil)\n                    (cons ,file (php-mode-test-process-magics)))))\n     ,(if faces\n          `(should (equal\n                    (cons ,file\n                          (php-mode-test--parse-list-file\n                           (concat (expand-file-name ,file php-mode-test-dir)\n                                   (if (eq t ,faces) \".faces\" ,faces))))\n                    (cons ,file\n                          (php-mode-test--buffer-face-list (current-buffer))))))\n     (goto-char (point-min))\n     (let ((case-fold-search nil))\n       ,@body)))\n\n(ert-deftest php-mode-test-namespace-block ()\n  \"Proper indentation for classs and functions in namespace block.\"\n  (with-php-mode-test (\"namespace-block.php\" :indent t :magic t)))\n\n(ert-deftest php-mode-test-issue-9 ()\n  \"Single quote in text in HTML misinterpreted.\nThe next character after \\\">We\\\" is a single quote. It should not\nhave a string face.\"\n  :expected-result :failed\n  (skip-unless (not (eq system-type darwin)))  ; TODO: Failed on macOS 28.2 or above!\n  (with-php-mode-test (\"issue-9.php\")\n    (search-forward \">We\")\n    (forward-char) ;; Jump to after the opening apostrophe\n    (should-not (eq\n                 (get-text-property (point) 'face)\n                 'php-string))))\n\n(ert-deftest php-mode-test-issue-14 ()\n  \"Array indentation.\"\n  (with-php-mode-test (\"issue-14.php\" :indent t :magic t)))\n\n(ert-deftest php-mode-test-issue-16 ()\n  \"Comma separated \\\"use\\\" (namespaces).\nGets the face of the text after the comma.\"\n  (with-php-mode-test (\"issue-16.php\")\n    (re-search-forward \"^use \" nil nil 3)\n    (should (eq\n             (get-text-property (search-forward \", \") 'face)\n             'font-lock-type-face))))\n\n(ert-deftest php-mode-test-issue-18 ()\n  \"Indentation of strings which include \\\"//\\\".\"\n  (with-php-mode-test (\"issue-18.php\" :indent t :magic t)))\n\n(ert-deftest php-mode-test-issue-19 ()\n  \"Alignment of arrow operators.\"\n  (custom-set-variables '(php-lineup-cascaded-calls t))\n  (with-php-mode-test (\"issue-19.php\" :indent t :custom t)\n    (while (search-forward \"$object->\" (point-max) t)\n      ;; Point is just after `->'\n      (let ((col (current-column)))\n        (search-forward \"->\")\n        (should (= (current-column) col)))))\n\n  ;; Test indentation again, but without php-lineup-cascaded-calls enabled\n  (with-php-mode-test (\"issue-19.php\" :indent t)\n    (while (search-forward \"\\\\($object->\\\\)\" (point-max) t)\n      (match-beginning 0)\n      ;; Point is just on `$'\n      (let ((col (current-column)))\n        (search-forward \"->\")\n        (should (= (current-column) (+ col c-basic-offset)))))))\n\n(ert-deftest php-mode-test-issue-21 ()\n  \"Font locking multi-line string.\"\n  (with-php-mode-test (\"issue-21.php\")\n    (search-forward \"= \")\n    (while (not (looking-at \";\"))\n      (should (eq (get-text-property (point) 'face)\n                  'php-string))\n      (forward-char))))\n\n(ert-deftest php-mode-test-issue-22 ()\n  \"Font lock quotes within comments as regular comments.\nThis applies for both single and double quotes.\"\n  (with-php-mode-test (\"issue-21.php\")\n    (while (search-forward \"#\" nil t)\n      (while (not (looking-at \"\\n\"))\n        (should (eq (get-text-property (point) 'face)\n                    'font-lock-comment-face))\n        (forward-char)))))\n\n(ert-deftest php-mode-test-issue-27 ()\n  \"Indentation in a file with a shebang.\"\n  (with-php-mode-test (\"issue-27.php\" :indent t :magic t)))\n\n(ert-deftest php-mode-test-issue-28 ()\n  \"Slowdown when scrolling.\nNo obvious way to test this. One possibility is to record time it\ntakes to scroll down the whole buffer using `next-line'. This may\nnot cause the desired fontification, and it could take different\namounts of time on different machines, so an absolute time would\nnot be very useful.\n\nThis doesn't test anything, for now.\"\n  (should t))\n\n(ert-deftest php-mode-test-issue-29 ()\n  \"Indentation of anonymous functions as arguments.\nThe closing brace and parenthesis should be at column 0.\"\n  (with-php-mode-test (\"issue-29.php\" :indent t :magic t)))\n\n(ert-deftest php-mode-test-issue-42 ()\n  \"Error while indenting closures.\nIf the bug has been fixed, indenting the buffer should not cause\nan error.\"\n  (with-php-mode-test (\"issue-42.php\" :indent t)))\n\n(ert-deftest php-mode-test-issue-53 ()\n  \"Check if whitespace effects are undone when changing coding\nstyle from Drupal.\"\n  (dolist (mode '(pear wordpress symfony2))\n    ;; the file written to has no significance, only the buffer\n    (let ((tmp-filename (concat (make-temp-name temporary-file-directory) \".php\"))\n          (auto-mode-alist '((\"\\\\.php\\\\'\" . php-mode))))\n      (with-php-mode-test (\"issue-53.php\")\n        (search-forward \"return $this->bar;\")\n        (should (equal (list \"before-write-file\" mode nil)\n                       (list \"before-write-file\" mode (looking-at-p \"$\"))))\n\n        (php-set-style \"drupal\")\n        (php-set-style (symbol-name mode))\n        (should (equal (list \"drupal\" mode nil)\n                       (list \"drupal\" mode show-trailing-whitespace)))\n        (php-set-style \"psr2\")\n        (php-set-style (symbol-name mode))\n        (should (equal (list \"psr2\" mode nil)\n                       (list \"psr2\" mode show-trailing-whitespace)))\n\n        (php-set-style \"drupal\")\n        (should (equal (list \"drupal-2\" mode t)\n                       (list \"drupal-2\" mode show-trailing-whitespace)))\n        (write-file tmp-filename)\n        (should (equal (list \"after-write-file\" mode t)\n                       (list \"after-write-file\" mode (looking-at-p \"$\"))))))))\n\n(ert-deftest php-mode-test-issue-73 ()\n  \"The `delete-indentation' function should work properly for PHP.\n This means modifying the logic of `fixup-whitespace' so that it\n eliminates spaces before ',', ';', '->' amd '::' and after '->' and\n '::'.\"\n  (with-php-mode-test (\"issue-73.php\")\n    (when (search-forward \"# Correct\" nil t)\n      (forward-line 1)\n      (let ((correct-line (thing-at-point 'line)))\n        (while (search-forward \"# Test\" nil t)\n          (forward-line 1)\n          (let ((current-line (line-number-at-pos)))\n            (catch 'eob\n              (while (not (looking-at-p \"$\"))\n                (unless (zerop (forward-line 1))\n                  (throw 'eob t))))\n            (forward-line -1)\n            (while (not (eq (line-number-at-pos) current-line))\n              (delete-indentation))\n            (beginning-of-line)\n            (should (string= (thing-at-point 'line) correct-line))))))))\n\n(ert-deftest php-mode-test-issue-83 ()\n  \"All static method should appear on imenu whether 'static' keyword is placed before or after visibility\"\n  (with-php-mode-test (\"issue-83.php\")\n    (let* ((index-alist (imenu--make-index-alist))\n           (all-methods (mapcar 'car (cdr (assoc \"Methods\" index-alist)))))\n      (should (equal all-methods\n                     (list\n                      \"static public function staticBeforeVisibility()\"\n                      \"public static function staticAfterVisibility()\"))))))\n\n(ert-deftest php-mode-test-issue-99 ()\n  \"Proper indentation for 'foreach' statements without braces.\"\n  (with-php-mode-test (\"issue-99.php\" :indent t :magic t)))\n\n(ert-deftest php-mode-test-issue-115 ()\n  \"Proper alignment for chained method calls inside arrays.\"\n  (custom-set-variables '(php-lineup-cascaded-calls t))\n  (with-php-mode-test (\"issue-115.php\" :indent t :magic t :custom t)))\n\n(ert-deftest php-mode-test-issue-135 ()\n  \"Proper alignment multiline statements.\"\n  (custom-set-variables '(php-lineup-cascaded-calls t))\n  (with-php-mode-test (\"issue-135.php\" :indent t :magic t :custom t)))\n\n(ert-deftest php-mode-test-issue-130 ()\n  \"Proper alignment array elements.\"\n  (with-php-mode-test (\"issue-130.php\" :indent t :magic t)))\n\n(ert-deftest php-mode-test-issue-124 ()\n  \"Proper syntax propertizing when a quote appears in a heredoc.\"\n  (with-php-mode-test (\"issue-124.php\" :indent t)\n    (search-forward \"Start of heredoc\")\n    ;; The heredoc should be recognized as a string.\n    (dolist (syntax (c-guess-basic-syntax))\n      (should (eq (car syntax) 'string)))\n    (search-forward \"function bar\")\n    ;; After the heredoc should *not* be recognized as a string.\n    (dolist (syntax (c-guess-basic-syntax))\n      (should (not (eq (car syntax) 'string))))))\n\n(ert-deftest php-mode-test-issue-136 ()\n  \"Proper highlighting for variable interpolation.\"\n  (with-php-mode-test (\"issue-136.php\") :faces t))\n\n(ert-deftest php-mode-test-issue-144 ()\n  \"Indentation test '#' comment line has single quote.\"\n  (with-php-mode-test (\"issue-144.php\" :indent t)\n    (search-forward \"$a\" nil nil 3)\n    (should (= (current-indentation) c-basic-offset))))\n\n(ert-deftest php-mode-test-issue-145 ()\n  \"Closure indentation.\"\n  (with-php-mode-test (\"issue-145.php\" :indent t)))\n\n(ert-deftest php-mode-test-constants ()\n  \"Proper highlighting for constants.\"\n  (with-php-mode-test (\"constants.php\" :faces t)))\n\n(ert-deftest php-mode-test-identifiers()\n  \"Proper highlighting for identifiers including their namespace.\"\n  (with-php-mode-test (\"identifiers.php\" :faces t)))\n\n(ert-deftest php-mode-test-variables ()\n  \"Proper highlighting for variables.\"\n  (with-php-mode-test (\"variables.php\" :faces t)\n    (let ((variables '(\"regularVariable\"\n                       \"variableVariable\"\n                       \"staticVariable\")))\n      (dolist (variable variables)\n        (save-excursion\n          (search-forward variable)\n          (goto-char (match-beginning 0))\n          (should (eq 'php-variable-name\n                      (get-text-property (point) 'face))))))\n\n    (search-forward \"memberVariable\")\n    (should (eq 'php-property-name\n                (get-text-property (match-beginning 0) 'face)))\n\n    (search-forward \"funCall\")\n    (should-not (eq 'php-property-name\n                    (get-text-property (match-beginning 0) 'face)))))\n\n(ert-deftest php-mode-test-arrays()\n  \"Proper highlighting for array keyword.\"\n  (with-php-mode-test (\"arrays.php\" :faces t)))\n\n(ert-deftest php-mode-test-issue-174 ()\n  \"Test escaped quotes in string literals\"\n  (with-php-mode-test (\"issue-174.php\")\n    (while (search-forward \"quotation mark\" nil t)\n      (should (eq 'php-string\n                  (get-text-property (- (point) 1) 'face))))))\n\n(ert-deftest php-mode-test-issue-175 ()\n  \"Not highlight more than 2 digit number\"\n  (with-php-mode-test (\"issue-175.php\")\n    (search-forward \"10\")\n    (goto-char (match-beginning 0))\n    (should-not (get-text-property (point) 'face))))\n\n\n(ert-deftest php-mode-test-language-constructs()\n  \"Test highlighting of language constructs and reserved keywords\"\n  (with-php-mode-test (\"language-constructs.php\")\n    (while (search-forward \"ClassName\" nil t)\n      (backward-char)\n      (let ((token (symbol-at-point)))\n        (should (equal (list token 'font-lock-type-face)\n                       (list token (get-text-property (point) 'face)))))))\n  (with-php-mode-test (\"language-constructs.php\")\n    (search-forward \"Start:\")\n    (while (not (= (line-number-at-pos) (count-lines (point-min) (point-max))))\n      (forward-line 1)\n      (let ((token (symbol-at-point)))\n        (should (equal (list token 'php-keyword)\n                       (list token (get-text-property (point) 'face))))))))\n\n(ert-deftest php-mode-test-issue-178 ()\n  \"Highligth as keyword and following symbol\"\n  (with-php-mode-test (\"issue-178.php\")\n    (search-forward \"use Test as\")\n    (should (eq 'php-keyword\n                (get-text-property (- (point) 1) 'face)))\n    (should (eq 'font-lock-type-face\n                (get-text-property (+ (point) 1) 'face)))\n    (search-forward \"$values as\")\n    (should (eq 'php-keyword\n                (get-text-property (- (point) 1) 'face)))\n    (should (eq 'php-variable-name\n                (get-text-property (+ (point) 2) 'face)))\n    (search-forward \"test as\")\n    (should (eq 'php-keyword\n                (get-text-property (- (point) 1) 'face)))\n    (should (eq 'php-keyword\n                (get-text-property (+ (point) 1) 'face)))))\n\n(ert-deftest php-mode-test-issue-186 ()\n  \"Indentation of switch case body preceeded by multiple case statements\"\n  (with-php-mode-test (\"issue-186.php\" :indent t :magic t)))\n\n(ert-deftest php-mode-test-issue-197 ()\n  \"Test highlighting of member and function names (should not have type face)\"\n  (with-php-mode-test (\"issue-197.php\" :faces t)))\n\n(ert-deftest php-mode-test-issue-200 ()\n  \"Test highlighting and elimination of extraneous whitespace in PSR-2 mode\"\n  (with-php-mode-test (\"issue-200.php\")\n    (php-set-style \"psr2\")\n    (should show-trailing-whitespace)\n    (should (and (listp before-save-hook) (member 'delete-trailing-whitespace before-save-hook)))))\n\n(ert-deftest php-mode-test-issue-201 ()\n  \"Test highlighting of special variables\"\n  (with-php-mode-test (\"issue-201.php\" :faces t)))\n\n(ert-deftest php-mode-test-issue-211 ()\n  \"Test indentation of string concatination\"\n  (with-php-mode-test (\"issue-211.php\")\n    (search-forward \"\\$str =\")\n    (let ((equal-indentation (1- (current-column)))) ;; because cursor is after '='\n      (forward-line 1)\n      (call-interactively 'indent-for-tab-command)\n      (should (= (current-column) equal-indentation)))\n\n    (search-forward \"\\$str_long_name =\")\n    (let ((equal-indentation (1- (current-column))))\n      (forward-line 1)\n      (call-interactively 'indent-for-tab-command)\n      (should (= (current-column) equal-indentation)))\n\n    (search-forward \"\\$sql =\")\n    (let ((equal-indentation (1- (current-column))))\n      (forward-line 2)\n      (call-interactively 'indent-for-tab-command)\n      (should (= (current-column) equal-indentation)))))\n\n(ert-deftest php-mode-test-issue-184()\n  \"Test indent-line for statements and heredoc end at beginning of lines\"\n  (with-php-mode-test (\"issue-184.php\")\n    (search-forward \"html;\")\n    (php-cautious-indent-line)\n    (should (= (current-indentation) 0))\n    (search-forward \"return;\")\n    (php-cautious-indent-line)\n    (should (= (current-indentation) c-basic-offset))))\n\n(ert-deftest php-mode-test-switch-statements()\n  \"Test indentation inside switch statements\"\n  (with-php-mode-test (\"switch-statements.php\" :indent t :style pear)\n    (search-forward \"case true:\")\n    (should (eq (current-indentation) 0))\n    (search-forward \"break\")\n    (should (eq (current-indentation) c-basic-offset)))\n  (with-php-mode-test (\"switch-statements.php\" :indent t :style psr2)\n    (search-forward \"case true:\")\n    (should (eq (current-indentation) c-basic-offset))\n    (search-forward \"break\")\n    (should (eq (current-indentation) (* 2 c-basic-offset)))\n    (search-forward \"return\")\n    (should (eq (current-indentation) (* 2 c-basic-offset)))))\n\n(ert-deftest php-mode-test-issue-237 ()\n  \"Indent chaining method for PSR2.\"\n  (with-php-mode-test (\"issue-237.php\" :indent t :style psr2 :magic t)))\n\n(ert-deftest php-mode-test-issue-253 ()\n  \"Test highlight after string literal which contains many escaped quotes.\"\n  (with-php-mode-test (\"issue-253.php\")\n    (search-forward \"$x\" nil nil 3)\n    (should (eq 'php-variable-name (get-text-property (1- (point)) 'face)))\n\n    (search-forward \"$this\")\n    (should (eq 'php-this-sigil (get-text-property (match-beginning 0) 'face)))\n    (should (eq 'php-this (get-text-property (1+ (match-beginning 0)) 'face)))\n\n    (search-forward \"$x\")\n    (should (eq 'php-variable-sigil (get-text-property (match-beginning 0) 'face)))\n    (should (eq 'php-variable-name (get-text-property (1+ (match-beginning 0)) 'face)))))\n\n(ert-deftest php-mode-test-issue-305 ()\n  \"Test highlighting variables which contains 'this' or 'that'.\"\n  (with-php-mode-test (\"issue-305.php\" :faces t)))\n\n(ert-deftest php-mode-test-issue-307 ()\n  \"Activating php-mode should not mark the buffer as modified.\"\n  (with-php-mode-test (\"issue-307.php\")\n    (set-buffer-modified-p nil)\n    (php-mode)\n    (should-not (buffer-modified-p))))\n\n(ert-deftest php-mode-test-issue-314 ()\n  \"Activating php-mode should not move point.\"\n  (with-php-mode-test (\"issue-314.php\")\n    (let ((orig-point (point)))\n      (php-mode)\n      (should (eq (point) orig-point)))))\n\n(ert-deftest php-mode-test-issue-310 ()\n  \"Proper indentation after function with return type.\"\n  (with-php-mode-test (\"issue-310.php\" :indent t :magic t)))\n\n(ert-deftest php-mode-test-issue-333 ()\n  \"Do not freeze Emacs by font-lock regexp pattern.\"\n  (with-php-mode-test (\"issue-333.php\")))\n\n(ert-deftest php-mode-test-issue-357 ()\n  \"Match version-specific interpreters.\"\n  (dolist (on '(\"php\" \"php3\" \"php5\" \"php7\" \"php-5\" \"php-5.5\" \"php7.0.1\"))\n    (with-temp-buffer\n      (insert \"#!\" on)\n      (set-auto-mode)\n      (should (eq 'php-mode major-mode))))\n\n  (dolist (off '(\"php2\" \"xphp5\" \"foo\" \"php7x\"))\n    (with-temp-buffer\n      (insert \"#!\" off)\n      (set-auto-mode)\n      (should (not (eq 'php-mode major-mode))))))\n\n(ert-deftest php-mode-test-issue-439 ()\n  \"Various heredoc/nowdoc formats are highlighted appropriately.\"\n  (with-php-mode-test (\"issue-439.php\" :faces t)))\n\n(ert-deftest php-mode-test-issue-443 ()\n  \"This case allows you to color things that are not authentic PHP tags\n(ex.  `<?xml', `<?hh') as false positives.\"\n  (with-php-mode-test (\"issue-443.php\"\n                       :faces (if (version<= \"27\" emacs-version) \".27.faces\" t))))\n\n(ert-deftest php-mode-test-type-hints ()\n  \"Test highlighting of type hints and return types.\"\n  (with-php-mode-test (\"type-hints.php\" :faces (cond ((version<= \"29\" emacs-version) \".29.faces\")\n                                                     (t)))))\n\n(ert-deftest php-mode-test-static-method-calls ()\n  \"Test highlighting of static method calls which are named the same\nas a keyword.\"\n  (with-php-mode-test (\"static-method-calls.php\" :faces t)))\n\n(ert-deftest php-mode-debug-test ()\n  \"Test running php-mode-debug and php-mode-debug--buffer.\"\n  (with-temp-buffer\n    (php-mode)\n    (php-mode-debug)\n    (should (string= (buffer-name) \"*PHP Mode DEBUG*\"))\n    (php-mode-debug--buffer 'top)\n    (search-forward \"--- PHP-MODE DEBUG BEGIN ---\")\n    (search-forward \"--- PHP-MODE DEBUG END ---\"))\n  (with-current-buffer (php-mode-debug--buffer 'init)\n    (should (eq 0 (- (point-max) (point-min))))))\n\n(ert-deftest php-project-root ()\n  \"Test for detection `php-project-root' by directory.\"\n  (dolist (root (mapcar #'car php-project-available-root-files))\n    (skip-unless (not (eq system-type windows-nt)))  ; TODO: Make test compatible to Windows!\n    (with-php-mode-test (\"project/1/src/functions.php\")\n      (let ((php-project-root root))\n        (should (string= (expand-file-name \"project/1/\" php-mode-test-dir)\n                         (expand-file-name (php-project-get-root-dir))))))))\n\n(defun php-mode-test-in-function-p (&optional pos)\n  \"Determine whether POS is inside a function.\nMeant for `php-mode-test-issue-503'.\"\n  (let (bof (pos (or pos (point))))\n    (save-excursion\n      (when (beginning-of-defun)\n        (setq bof (point))\n        (end-of-defun)\n        (and (> pos bof)\n             (< pos (point)))))))\n\n(ert-deftest php-mode-test-issue-503 ()\n  \"Function `php-beginning-of-defun' should return non-nil on success.\"\n  (with-php-mode-test (\"issue-503.php\")\n    (php-mode)\n    (goto-char (point-max))\n    (should (eq (php-mode-test-in-function-p) nil))\n    (should (eq (php-mode-test-in-function-p (1- (point))) t))\n    (should (eq (php-mode-test-in-function-p 1) nil))\n    (should (eq (php-mode-test-in-function-p 24) t))\n    (goto-char (point-min))\n    (should (eq (php-mode-test-in-function-p nil) nil))))\n\n(ert-deftest php-mode-test-indentation-issues ()\n  ;; Proper alignment object -> accessor.\n  (with-php-mode-test (\"indent/issue-623.php\" :indent t :magic t))\n  ;; Proper alignment arglist.\n  (with-php-mode-test (\"indent/issue-702.php\" :indent t :magic t))\n  (with-php-mode-test (\"indent/issue-726.php\" :indent t :magic t))\n  ;; Proper alignment arglist that contains empty lines.\n  (with-php-mode-test (\"indent/issue-793.php\" :indent t :magic t)))\n\n(ert-deftest php-mode-test-php74 ()\n  \"Test highlighting language constructs added in PHP 7.4.\"\n  (with-php-mode-test (\"7.4/arrow-function.php\" :faces t))\n  (with-php-mode-test (\"7.4/typed-property.php\" :faces t)))\n\n(ert-deftest php-mode-test-php80 ()\n  \"Test highlighting language constructs added in PHP 8.0.\"\n  (with-php-mode-test (\"8.0/attribute/class.php\" :faces t))\n  (with-php-mode-test (\"8.0/attribute/function.php\" :faces t))\n  (with-php-mode-test (\"8.0/attribute/function2.php\" :faces t)))\n\n(ert-deftest php-mode-test-php81 ()\n  \"Test highlighting language constructs added in PHP 8.1.\"\n  (with-php-mode-test (\"8.1/enum.php\" :faces t))\n  (with-php-mode-test (\"8.1/readonly.php\" :faces t)))\n\n(ert-deftest php-mode-test-php84 ()\n  \"Test highlighting language constructs added in PHP 8.4.\"\n  (with-php-mode-test (\"8.4/property-hooks.php\" :faces t)))\n\n(ert-deftest php-mode-test-lang ()\n  \"Test highlighting for language constructs.\"\n  (with-php-mode-test (\"lang/class/anonymous-class.php\" :indent t :magic t :faces t))\n  (with-php-mode-test (\"lang/doc-comment/comments.php\"\n                       :faces (cond ((eq emacs-major-version 24) \".24.faces\")\n                                    ((version<= \"27\" emacs-version) \".27.faces\")\n                                    (t t))))\n  (with-php-mode-test (\"lang/doc-comment/annotation.php\" :faces t))\n  (with-php-mode-test (\"lang/doc-comment/issue-8.php\" :faces t))\n  (with-php-mode-test (\"lang/doc-comment/inheritdoc.php\" :faces t))\n  (with-php-mode-test (\"lang/doc-comment/return-type.php\" :faces t))\n  (with-php-mode-test (\"lang/function/calls.php\" :faces t))\n  (with-php-mode-test (\"lang/function/closure.php\" :indent t :magic t :faces t))\n  (with-php-mode-test (\"lang/import/import-constant.php\" :faces t))\n  (with-php-mode-test (\"lang/import/import-function.php\" :faces t))\n  (with-php-mode-test (\"lang/try-cactch/multiple.php\" :faces t))\n  (with-php-mode-test (\"lang/types/cast.php\" :faces t))\n  (with-php-mode-test (\"lang/types/function.php\" :faces t))\n  (with-php-mode-test (\"lang/types/keywords.php\" :faces t))\n  (with-php-mode-test (\"lang/errorcontrol.php\" :faces t))\n  (with-php-mode-test (\"lang/magical-constants/echo.php\" :faces t)))\n\n(ert-deftest php-mode-test-pear ()\n  \"Tests for PEAR style.\"\n  (with-php-mode-test (\"indent/issue-227.php\" :indent t :magic t :style pear))\n  (with-php-mode-test (\"indent/issue-774.php\" :indent t :magic t :style pear)))\n\n;; For developers: How to make .faces list file.\n;;\n;; 1. Press `M-x eval-buffer' in this file bufffer.\n;; 2. Copy follows code snippet:\n;;     (setq x (php-mode-test--buffer-face-list (current-buffer)))\n;; 3. Visit target buffer of testing PHP file.\n;; 4. Press `M-:' (or `M-x eval-expression') and yank killed the code snippet.\n;; 5. Press `M-x ielm' and input `x' and RET key.\n;; 6. Kill output list and yank list to .faces file.\n;; 7. Execute `make test' in shell.\n\n;;; php-mode-test.el ends here\n"
  },
  {
    "path": "tests/profiler/large-string-interpolation.php",
    "content": "<?php\n\necho \"\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\nThis is a $test\n\";\n"
  },
  {
    "path": "tests/project/1/.editorconfig",
    "content": ""
  },
  {
    "path": "tests/project/1/.hg",
    "content": ""
  },
  {
    "path": "tests/project/1/.projectile",
    "content": ""
  },
  {
    "path": "tests/project/1/.svn",
    "content": ""
  },
  {
    "path": "tests/project/1/composer.json",
    "content": ""
  },
  {
    "path": "tests/project/1/src/functions.php",
    "content": "<?php\n"
  },
  {
    "path": "tests/static-method-calls.php",
    "content": "<?php\n\nClassName::method();\n\\Project\\Module\\ClassName::method();\n\\ClassName::method();\n\nClassName::new();\n\\Project\\Module\\ClassName::new();\n\\ClassName::new();\n\nClassName::clone();\n\\Project\\Module\\ClassName::clone();\n\\ClassName::clone();\n"
  },
  {
    "path": "tests/static-method-calls.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"ClassName\" . php-constant)\n (\"::\" . php-paamayim-nekudotayim)\n (\"method\" . php-static-method-call-traditional)\n (\"();\\n\")\n (\"\\\\Project\\\\Module\\\\ClassName\" . php-constant)\n (\"::\" . php-paamayim-nekudotayim)\n (\"method\" . php-static-method-call-traditional)\n (\"();\\n\")\n (\"\\\\ClassName\" . php-constant)\n (\"::\" . php-paamayim-nekudotayim)\n (\"method\" . php-static-method-call-traditional)\n (\"();\\n\\n\")\n (\"ClassName\" . php-constant)\n (\"::\" . php-paamayim-nekudotayim)\n (\"new\" . php-static-method-call-traditional)\n (\"();\\n\")\n (\"\\\\Project\\\\Module\\\\ClassName\" . php-constant)\n (\"::\" . php-paamayim-nekudotayim)\n (\"new\" . php-static-method-call-traditional)\n (\"();\\n\")\n (\"\\\\ClassName\" . php-constant)\n (\"::\" . php-paamayim-nekudotayim)\n (\"new\" . php-static-method-call-traditional)\n (\"();\\n\\n\")\n (\"ClassName\" . php-constant)\n (\"::\" . php-paamayim-nekudotayim)\n (\"clone\" . php-static-method-call-traditional)\n (\"();\\n\")\n (\"\\\\Project\\\\Module\\\\ClassName\" . php-constant)\n (\"::\" . php-paamayim-nekudotayim)\n (\"clone\" . php-static-method-call-traditional)\n (\"();\\n\")\n (\"\\\\ClassName\" . php-constant)\n (\"::\" . php-paamayim-nekudotayim)\n (\"clone\" . php-static-method-call-traditional)\n (\"();\\n\"))\n"
  },
  {
    "path": "tests/switch-statements.php",
    "content": "<?php\n\n/**\n * Test indentation of switch statement and case labels\n */\n\nswitch (true) {\n    case true:\n        echo 'hello';\n        break;\n\n    case true:\n        return;\n}"
  },
  {
    "path": "tests/template.php",
    "content": "<?php\n\n/**\n * GitHub Issue:    https://github.com/emacs-php/php-mode/issues/NNN\n *\n * ---------------------------------------------------------------------- \n * Add the correct issue number to the URL above, replacing the 'NNN',\n * and then replace this with a description of the test and its\n * purpose, using the existing tests as examples.\n * ----------------------------------------------------------------------\n * \n */\n"
  },
  {
    "path": "tests/type-hints.php",
    "content": "<?php\n\nclass SomeClass\n{\n    public function none($title): void\n    {\n    }\n\n    public function title(string $title): string\n    {\n    }\n\n    public function nullableTitle(?string $title): ?string\n    {\n    }\n\n    public function number(int $number): int\n    {\n    }\n\n    public function nullableNumber(?int $number): ?int\n    {\n    }\n\n    public function otherNumber(float $number): float\n    {\n    }\n\n    public function nullableOtherNumber(?float $number): ?float\n    {\n    }\n\n    public function flag(bool $flag): bool\n    {\n    }\n\n    public function nullableFlag(?bool $flag): ?bool\n    {\n    }\n\n    public function options(array $options): array\n    {\n    }\n\n    public function nullableOptions(?array $options): ?array\n    {\n    }\n\n    public function object(stdClass $object): stdClass\n    {\n    }\n\n    public function nullableObject(?stdClass $object): ?stdClass\n    {\n    }\n\n    public function nsObject(\\path\\to\\my\\Object $object): \\path\\to\\my\\Object\n    {\n    }\n\n    public function nullableNsObject(?\\path\\to\\my\\Object $object): ?\\path\\to\\my\\Object\n    {\n    }\n\n    public function callable(callable $callable): callable\n    {\n    }\n\n    public function nullableCallable(?callable $callable): ?callable\n    {\n    }\n\n    public function someFunction(\n        $any,\n        string $name,\n        int $value,\n        bool $flag,\n        array $options,\n        stdClass $object,\n        \\path\\to\\my\\Object $nsObject\n    ): void {\n    }\n\n    public function getNone(\n    ): void {\n    }\n\n    public function getTitle(\n    ): string {\n    }\n\n    public function getNullableTitle(\n    ): ?string {\n    }\n\n    public function getNumber(\n    ): int {\n    }\n\n    public function getNullableNumber(\n    ): ?int {\n    }\n\n    public function getOtherNumber(\n    ): float {\n    }\n\n    public function getNullableOtherNumber(\n    ): ?float {\n    }\n\n    public function getFlag(\n    ): bool {\n    }\n\n    public function getNullableFlag(\n    ): ?bool {\n    }\n\n    public function getOptions(\n    ): array {\n    }\n\n    public function getNullableOptions(\n    ): ?array {\n    }\n\n    public function getObject(\n    ): stdClass {\n    }\n\n    public function getNullableObject(\n    ): ?stdClass {\n    }\n\n    abstract public function getOtherObject(\n    ): stdClass;\n\n    abstract public function getOtherNullableObject(\n    ): ?stdClass;\n\n    public function getNsObject(\n    ): \\path\\to\\my\\Object {\n    }\n\n    public function getNullableNsObject(\n    ): ?\\path\\to\\my\\Object {\n    }\n\n    public function getCallable(\n    ): callable {\n    }\n\n    public function getNullableCallable(\n    ): ?callable {\n    }\n\n    public function neverReturn(\n    ): never {\n    }\n}\n"
  },
  {
    "path": "tests/type-hints.php.29.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\n\n\")\n (\"class\" . php-class-declaration)\n (\" \")\n (\"SomeClass\" . font-lock-type-face)\n (\"\n{\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"none\" . php-function-name)\n (\"(\")\n (\"$\" . php-variable-sigil)\n (\"title\" . php-variable-name)\n (\"): \")\n (\"void\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"title\" . php-function-name)\n (\"(\")\n (\"string\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"title\" . php-variable-name)\n (\"): \")\n (\"string\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nullableTitle\" . php-function-name)\n (\"(\")\n (\"?string\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"title\" . php-variable-name)\n (\"): \")\n (\"?string\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"number\" . php-function-name)\n (\"(\")\n (\"int\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"number\" . php-variable-name)\n (\"): \")\n (\"int\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nullableNumber\" . php-function-name)\n (\"(\")\n (\"?int\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"number\" . php-variable-name)\n (\"): \")\n (\"?int\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"otherNumber\" . php-function-name)\n (\"(\")\n (\"float\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"number\" . php-variable-name)\n (\"): \")\n (\"float\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nullableOtherNumber\" . php-function-name)\n (\"(\")\n (\"?float\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"number\" . php-variable-name)\n (\"): \")\n (\"?float\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"flag\" . php-function-name)\n (\"(\")\n (\"bool\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"flag\" . php-variable-name)\n (\"): \")\n (\"bool\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nullableFlag\" . php-function-name)\n (\"(\")\n (\"?bool\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"flag\" . php-variable-name)\n (\"): \")\n (\"?bool\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"options\" . php-function-name)\n (\"(\")\n (\"array\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"options\" . php-variable-name)\n (\"): \")\n (\"array\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nullableOptions\" . php-function-name)\n (\"(\")\n (\"?array\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"options\" . php-variable-name)\n (\"): \")\n (\"?array\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"object\" . php-function-name)\n (\"(stdClass \")\n (\"$\" . php-variable-sigil)\n (\"object\" . php-variable-name)\n (\"): \")\n (\"stdClass\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nullableObject\" . php-function-name)\n (\"(\")\n (\"?stdClass\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"object\" . php-variable-name)\n (\"): \")\n (\"?stdClass\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nsObject\" . php-function-name)\n (\"(\")\n (\"\\\\path\\\\to\\\\my\\\\Object\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"object\" . php-variable-name)\n (\"): \")\n (\"\\\\path\\\\to\\\\my\\\\Object\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nullableNsObject\" . php-function-name)\n (\"(\")\n (\"?\\\\path\\\\to\\\\my\\\\Object\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"object\" . php-variable-name)\n (\"): \")\n (\"?\\\\path\\\\to\\\\my\\\\Object\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"callable\" . php-function-name)\n (\"(\")\n (\"callable\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"callable\" . php-variable-name)\n (\"): \")\n (\"callable\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nullableCallable\" . php-function-name)\n (\"(\")\n (\"?callable\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"callable\" . php-variable-name)\n (\"): \")\n (\"?callable\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"someFunction\" . php-function-name)\n (\"(\n        \")\n (\"$\" . php-variable-sigil)\n (\"any\" . php-variable-name)\n (\",\n        \")\n (\"string\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"name\" . php-variable-name)\n (\",\n        \")\n (\"int\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"value\" . php-variable-name)\n (\",\n        \")\n (\"bool\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"flag\" . php-variable-name)\n (\",\n        \")\n (\"array\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"options\" . php-variable-name)\n (\",\n        \")\n (\"stdClass\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"object\" . php-variable-name)\n (\",\n        \")\n (\"\\\\path\\\\to\\\\my\\\\Object\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"nsObject\" . php-variable-name)\n (\"\n    ): \")\n (\"void\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNone\" . php-function-name)\n (\"(\n    ): \")\n (\"void\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getTitle\" . php-function-name)\n (\"(\n    ): \")\n (\"string\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNullableTitle\" . php-function-name)\n (\"(\n    ): \")\n (\"?string\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNumber\" . php-function-name)\n (\"(\n    ): \")\n (\"int\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNullableNumber\" . php-function-name)\n (\"(\n    ): \")\n (\"?int\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getOtherNumber\" . php-function-name)\n (\"(\n    ): \")\n (\"float\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNullableOtherNumber\" . php-function-name)\n (\"(\n    ): \")\n (\"?float\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getFlag\" . php-function-name)\n (\"(\n    ): \")\n (\"bool\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNullableFlag\" . php-function-name)\n (\"(\n    ): \")\n (\"?bool\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getOptions\" . php-function-name)\n (\"(\n    ): \")\n (\"array\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNullableOptions\" . php-function-name)\n (\"(\n    ): \")\n (\"?array\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getObject\" . php-function-name)\n (\"(\n    ): \")\n (\"stdClass\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNullableObject\" . php-function-name)\n (\"(\n    ): \")\n (\"?stdClass\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"abstract\" . php-keyword)\n (\" \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getOtherObject\" . php-function-name)\n (\"(\n    ): \")\n (\"stdClass\" . font-lock-type-face)\n (\";\n\n    \")\n (\"abstract\" . php-keyword)\n (\" \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getOtherNullableObject\" . php-function-name)\n (\"(\n    ): \")\n (\"?stdClass\" . font-lock-type-face)\n (\";\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNsObject\" . php-function-name)\n (\"(\n    ): \")\n (\"\\\\path\\\\to\\\\my\\\\Object\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNullableNsObject\" . php-function-name)\n (\"(\n    ): \")\n (\"?\\\\path\\\\to\\\\my\\\\Object\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getCallable\" . php-function-name)\n (\"(\n    ): \")\n (\"callable\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNullableCallable\" . php-function-name)\n (\"(\n    ): \")\n (\"?callable\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"neverReturn\" . php-function-name)\n (\"(\n    ): \")\n (\"never\" . font-lock-type-face)\n (\" {\n    }\n}\n\"))\n"
  },
  {
    "path": "tests/type-hints.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\n\n\")\n (\"class\" . php-class-declaration)\n (\" \")\n (\"SomeClass\" . font-lock-type-face)\n (\"\n{\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"none\" . php-function-name)\n (\"(\")\n (\"$\" . php-variable-sigil)\n (\"title\" . php-variable-name)\n (\"): \")\n (\"void\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"title\" . php-function-name)\n (\"(\")\n (\"string\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"title\" . php-variable-name)\n (\"): \")\n (\"string\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nullableTitle\" . php-function-name)\n (\"(\")\n (\"?string\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"title\" . php-variable-name)\n (\"): \")\n (\"?string\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"number\" . php-function-name)\n (\"(\")\n (\"int\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"number\" . php-variable-name)\n (\"): \")\n (\"int\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nullableNumber\" . php-function-name)\n (\"(\")\n (\"?int\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"number\" . php-variable-name)\n (\"): \")\n (\"?int\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"otherNumber\" . php-function-name)\n (\"(\")\n (\"float\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"number\" . php-variable-name)\n (\"): \")\n (\"float\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nullableOtherNumber\" . php-function-name)\n (\"(\")\n (\"?float\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"number\" . php-variable-name)\n (\"): \")\n (\"?float\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"flag\" . php-function-name)\n (\"(\")\n (\"bool\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"flag\" . php-variable-name)\n (\"): \")\n (\"bool\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nullableFlag\" . php-function-name)\n (\"(\")\n (\"?bool\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"flag\" . php-variable-name)\n (\"): \")\n (\"?bool\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"options\" . php-function-name)\n (\"(\")\n (\"array\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"options\" . php-variable-name)\n (\"): \")\n (\"array\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nullableOptions\" . php-function-name)\n (\"(\")\n (\"?array\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"options\" . php-variable-name)\n (\"): \")\n (\"?array\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"object\" . php-function-name)\n (\"(\")\n (\"stdClass\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"object\" . php-variable-name)\n (\"): \")\n (\"stdClass\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nullableObject\" . php-function-name)\n (\"(\")\n (\"?stdClass\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"object\" . php-variable-name)\n (\"): \")\n (\"?stdClass\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nsObject\" . php-function-name)\n (\"(\")\n (\"\\\\path\\\\to\\\\my\\\\Object\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"object\" . php-variable-name)\n (\"): \")\n (\"\\\\path\\\\to\\\\my\\\\Object\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nullableNsObject\" . php-function-name)\n (\"(\")\n (\"?\\\\path\\\\to\\\\my\\\\Object\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"object\" . php-variable-name)\n (\"): \")\n (\"?\\\\path\\\\to\\\\my\\\\Object\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"callable\" . php-function-name)\n (\"(\")\n (\"callable\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"callable\" . php-variable-name)\n (\"): \")\n (\"callable\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"nullableCallable\" . php-function-name)\n (\"(\")\n (\"?callable\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"callable\" . php-variable-name)\n (\"): \")\n (\"?callable\" . font-lock-type-face)\n (\"\n    {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"someFunction\" . php-function-name)\n (\"(\n        \")\n (\"$\" . php-variable-sigil)\n (\"any\" . php-variable-name)\n (\",\n        \")\n (\"string\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"name\" . php-variable-name)\n (\",\n        \")\n (\"int\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"value\" . php-variable-name)\n (\",\n        \")\n (\"bool\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"flag\" . php-variable-name)\n (\",\n        \")\n (\"array\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"options\" . php-variable-name)\n (\",\n        \")\n (\"stdClass\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"object\" . php-variable-name)\n (\",\n        \")\n (\"\\\\path\\\\to\\\\my\\\\Object\" . font-lock-type-face)\n (\" \")\n (\"$\" . php-variable-sigil)\n (\"nsObject\" . php-variable-name)\n (\"\n    ): \")\n (\"void\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNone\" . php-function-name)\n (\"(\n    ): \")\n (\"void\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getTitle\" . php-function-name)\n (\"(\n    ): \")\n (\"string\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNullableTitle\" . php-function-name)\n (\"(\n    ): \")\n (\"?string\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNumber\" . php-function-name)\n (\"(\n    ): \")\n (\"int\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNullableNumber\" . php-function-name)\n (\"(\n    ): \")\n (\"?int\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getOtherNumber\" . php-function-name)\n (\"(\n    ): \")\n (\"float\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNullableOtherNumber\" . php-function-name)\n (\"(\n    ): \")\n (\"?float\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getFlag\" . php-function-name)\n (\"(\n    ): \")\n (\"bool\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNullableFlag\" . php-function-name)\n (\"(\n    ): \")\n (\"?bool\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getOptions\" . php-function-name)\n (\"(\n    ): \")\n (\"array\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNullableOptions\" . php-function-name)\n (\"(\n    ): \")\n (\"?array\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getObject\" . php-function-name)\n (\"(\n    ): \")\n (\"stdClass\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNullableObject\" . php-function-name)\n (\"(\n    ): \")\n (\"?stdClass\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"abstract\" . php-keyword)\n (\" \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getOtherObject\" . php-function-name)\n (\"(\n    ): \")\n (\"stdClass\" . font-lock-type-face)\n (\";\n\n    \")\n (\"abstract\" . php-keyword)\n (\" \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getOtherNullableObject\" . php-function-name)\n (\"(\n    ): \")\n (\"?stdClass\" . font-lock-type-face)\n (\";\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNsObject\" . php-function-name)\n (\"(\n    ): \")\n (\"\\\\path\\\\to\\\\my\\\\Object\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNullableNsObject\" . php-function-name)\n (\"(\n    ): \")\n (\"?\\\\path\\\\to\\\\my\\\\Object\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getCallable\" . php-function-name)\n (\"(\n    ): \")\n (\"callable\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"getNullableCallable\" . php-function-name)\n (\"(\n    ): \")\n (\"?callable\" . font-lock-type-face)\n (\" {\n    }\n\n    \")\n (\"public\" . php-keyword)\n (\" \")\n (\"function\" . php-keyword)\n (\" \")\n (\"neverReturn\" . php-function-name)\n (\"(\n    ): \")\n (\"never\" . font-lock-type-face)\n (\" {\n    }\n}\n\"))\n"
  },
  {
    "path": "tests/variables.php",
    "content": "<?php\n\n// Test highlighting of variables with the variable-name-face\n$_;\n$regularVariable;\n$$variableVariable;\n$漢字;\n$snake_case;\n$abc123xyz;\n$def_456_ghi;\n${'var'};\n${\"var\"};\n${$var};\n${'v' . 'ar'};\n$a{1};\n$a{'a'};\nMyClass::$staticVariable;\n$object->memberVariable;\n$object->funCall();\n"
  },
  {
    "path": "tests/variables.php.faces",
    "content": ";; -*- mode: emacs-lisp -*-\n((\"<?php\" . php-php-tag)\n (\"\\n\\n\")\n (\"// \" . font-lock-comment-delimiter-face)\n (\"Test highlighting of variables with the variable-name-face\\n\" . font-lock-comment-face)\n (\"$\" . php-variable-sigil)\n (\"_\" . php-variable-name)\n (\";\\n\")\n (\"$\" . php-variable-sigil)\n (\"regularVariable\" . php-variable-name)\n (\";\\n\")\n (\"$$\" . php-variable-sigil)\n (\"variableVariable\" . php-variable-name)\n (\";\\n\")\n (\"$\" . php-variable-sigil)\n (\"漢字\" . php-variable-name)\n (\";\\n\")\n (\"$\" . php-variable-sigil)\n (\"snake_case\" . php-variable-name)\n (\";\\n\")\n (\"$\" . php-variable-sigil)\n (\"abc123xyz\" . php-variable-name)\n (\";\\n\")\n (\"$\" . php-variable-sigil)\n (\"def_456_ghi\" . php-variable-name)\n (\";\\n${\")\n (\"'var'\" . php-string)\n (\"};\\n${\")\n (\"\\\"var\\\"\" . php-string)\n (\"};\\n${\")\n (\"$\" . php-variable-sigil)\n (\"var\" . php-variable-name)\n (\"};\\n${\")\n (\"'v'\" . php-string)\n (\" . \")\n (\"'ar'\" . php-string)\n (\"};\\n\")\n (\"$\" . php-variable-sigil)\n (\"a\" . php-variable-name)\n (\"{1};\\n\")\n (\"$\" . php-variable-sigil)\n (\"a\" . php-variable-name)\n (\"{\")\n (\"'a'\" . php-string)\n (\"};\\n\")\n (\"MyClass\" . php-constant)\n (\"::\" . php-paamayim-nekudotayim)\n (\"$\" . php-variable-sigil)\n (\"staticVariable\" . php-variable-name)\n (\";\\n\")\n (\"$\" . php-variable-sigil)\n (\"object\" . php-variable-name)\n (\"->\" . php-object-op)\n (\"memberVariable\" . php-property-name)\n (\";\\n\")\n (\"$\" . php-variable-sigil)\n (\"object\" . php-variable-name)\n (\"->\" . php-object-op)\n (\"funCall\" . php-method-call-traditional)\n (\"();\\n\"))\n"
  }
]