plugin-php icon indicating copy to clipboard operation
plugin-php copied to clipboard

Prettier PHP Plugin

Results 169 plugin-php issues
Sort by recently updated
recently updated
newest added

**Prettier 3.0.3** **PHP Plugin 0.22.2** **Input:** ```php $unit = $unitNode?->print($context); ``` **Output:** ```php Error: test.php: SyntaxError: Parse Error : syntax error, unexpected 'print' (T_PRINT) on line 549 Error: 549 |...

Hello, I’m trying to format only specific sections of files in a legacy codebase using the `--range-start` and `--range-end` options. This works fine with JS files but when using this...

Thanks for all the work on this project, Prettier team! **Description** For HTML specifically, this is probably related to better [`inline`](https://github.com/prettier/plugin-php/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc+label%3Ainline) support, & https://github.com/prettier/plugin-php/issues/845#issuecomment-441405121 but I figured the implementation for...

Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.4 to 4.0.8. Release notes Sourced from micromatch's releases. 4.0.8 Ultimate release that fixes both CVE-2024-4067 and CVE-2024-4068. We consider the issues low-priority, so even if you...

dependencies

Bumps [eslint-plugin-jest](https://github.com/jest-community/eslint-plugin-jest) from 27.6.3 to 28.8.1. Release notes Sourced from eslint-plugin-jest's releases. v28.8.1 28.8.1 (2024-08-29) Bug Fixes prefer-importing-jest-globals: support typescript-eslint parser (#1639) (307f6a7) v28.8.0 28.8.0 (2024-08-07) Features import formatting rules...

dependencies

**@prettier/plugin-php v0.22.4** [Playground link](https://loilo.github.io/prettier-php-playground/#N4IgDgTgpgLjCWUIHkwIPYDsDOIBcok8mMA6vACYwAW+AHAAwA0IMAhgEblW14AsLAK7YoAFU648AMzYAbES2zEA5rKgBFQehhR8M+VBZhqYAGpIlWfCACsAOj4gWMCG3iyVAYXQBbH2wAFAAkA-BdBQxAOVwBjKABlGABPNWswJABaGNwWaABHQXhoANdlfz05BRBiEQgYErYytgqDAF8WKAp4GHQUNHgsSVA2bBgWkXbqzDBBMbwQAGIAQgACAHphCDWOYjWoTAA3FeMwAB1MAB4AfhPzgBJRthhhFYBeFYYAbhWoAA9ugAUD3Yz2wAEpPiBWkA) **Input:** ```php #! /usr/bin/env php

This partially fixes #2360, in the sense that formatting now matches PSR guidelines. It will still split across multiple lines if need be though.

This PR adds typescript support to the package.

When prettier-php has a comment directly after ` ``` **Output run 1:** ```php ``` **Output run 2:** ```php ``` **Output run 3:** each successive run adds a new line with...

**Prettier 3.5.3** **PHP Plugin 0.22.4** ```sh # Options (if any): ``` **Input:** ```php