Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cspray/ampv3-psalm
https://github.com/cspray/ampv3-psalm
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/cspray/ampv3-psalm
- Owner: cspray
- Created: 2024-10-01T15:59:49.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-10-01T16:00:34.000Z (3 months ago)
- Last Synced: 2024-12-08T21:44:31.756Z (14 days ago)
- Language: PHP
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Amp v3 and Psalm Support
Amp v3 is currently only supported in development versions of Psalm. This
repo demonstrates how Psalm `dev-master` does not currently recognize
`@psalm-assert` annotations in the `vendor/` directory.## Installation
This repo is not expected to be installed locally. Please review the
source code and then review the output of the provided GitHub Action.## Overview
There is a single class that implements 2 public static methods; one using `webmozart/assert`
to verify the type of a mixed value, and the other using the same `psalm-assert` annotation as
webmozart but in a private method of the class. The output of the GitHub Action shows there are
2 errors in the method using webmozart, demonstrating that the `psalm-assert` annotations are
not probably being recognized by Psalm.