Skip to content

Phoxite 0.6.0

Choose a tag to compare

@github-actions github-actions released this 17 Nov 11:28
· 35 commits to main since this release
  • A file the indexer can't read without failing is left out, and the rest of the project
    is indexed. Indexing that fails as a whole is tried once more, then reported with a
    message instead of an "Indexing PHP" progress that never ends.
  • A setting whose value doesn't fit (a number where a text is expected, an unknown
    choice) keeps its default and is named in a message. The other settings apply; before,
    one such value put every setting back to its default without a word.
  • The PHP version and the ext-* requirements are read again when composer.json
    changes, and by Index the Project Again: no restart after raising require.php or
    adding an extension.
  • A project can carry its settings: phoxite.json at its root holds the settings an
    editor would send, wins over them key by key, and is followed when it changes. It
    can't set analyzers or laravel.database, and includePaths only in a trusted
    workspace. VS Code completes and validates the file, and ide.json too.
  • A changed severity of an inspection shows at once, not with the next edit of the file.
  • Property hooks (PHP 8.4) are understood inside: $value of a set hook has the
    property's type (or the hook's own parameter its declared one), completion, hover and
    go to definition work in a hook's body, undefined and unused variables are reported
    there, and what a get hook returns is checked against the property's type. Before,
    a hook's body was read as part of whatever was around the class.
  • Two inspections for members that exist but can't be used where they are. Inaccessible
    member
    (PhpInaccessibleMember): a private or protected method, property or class
    constant used from outside the classes allowed to, and a write to a private(set) or
    protected(set) property (PHP 8.4). Readonly property written outside its scope
    (PhpReadonlyPropertyWrittenOutsideDeclarationScope): its class, and from PHP 8.4
    its subclasses. They report what fails for certain and stay quiet where magic methods,
    a trait, a bound closure or a subclass that widens the member could make it work;
    "strict": true adds union receivers and closures inside classes.
  • phoxite-lsp check [PATH...] inspects a project from the command line: the problems of
    its own PHP files and Blade templates as text, JSON, SARIF 2.1.0 or GitHub annotations
    (--format), and an exit code for CI (--fail-on error|warning|never). It reads the
    project's phoxite.json.