Skip to content

Commit

Permalink
Merge pull request #127 from gsteel/get-messages
Browse files Browse the repository at this point in the history
qa: psalm improvements
  • Loading branch information
Ocramius authored Jun 9, 2022
2 parents 9cda724 + 9f6d11a commit dd9d106
Show file tree
Hide file tree
Showing 19 changed files with 349 additions and 425 deletions.
2 changes: 0 additions & 2 deletions .coveralls.yml

This file was deleted.

13 changes: 8 additions & 5 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
/.coveralls.yml export-ignore
/.gitattributes export-ignore
/.github/ export-ignore
/.gitignore export-ignore
/docs/ export-ignore
/test/ export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.laminas-ci.json export-ignore
/.psr-container.php.stub export-ignore
/mkdocs.yml export-ignore
/phpcs.xml export-ignore
/phpcs.xml.dist export-ignore
/phpunit.xml.dist export-ignore
/test/ export-ignore
/psalm-baseline.xml export-ignore
/psalm.xml.dist export-ignore
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/.phpcs-cache
/.phpunit.result.cache
/clover.xml
/coveralls-upload.json
/docs/html/
/laminas-mkdoc-theme.tgz
/laminas-mkdoc-theme/
Expand Down
23 changes: 23 additions & 0 deletions .psr-container.php.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php
/**
* File named as .stub to avoid duplicate declaration of the interface in consuming projects
*/
declare(strict_types=1);

namespace Psr\Container {
/**
* Provides automatic type inference for Psalm when retrieving a service from a container using a FQCN
*/
interface ContainerInterface
{
/** @param string|class-string $id */
public function has(string $id): bool;

/**
* @template T of object
* @psalm-param string|class-string<T> $id
* @psalm-return ($id is class-string ? T : mixed)
*/
public function get(string $id): object;
}
}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# laminas-validator

[![Build Status](https://github.com/laminas/laminas-validator/actions/workflows/continuous-integration.yml/badge.svg)](https://github.com/laminas/laminas-validator/actions/workflows/continuous-integration.yml)
[![Coverage Status](https://coveralls.io/repos/github/laminas/laminas-validator/badge.svg?branch=master)](https://coveralls.io/github/laminas/laminas-validator?branch=master)

> ## 🇷🇺 Русским гражданам
>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"require": {
"php": "^7.3 || ~8.0.0 || ~8.1.0",
"container-interop/container-interop": "^1.1",
"laminas/laminas-stdlib": "^3.6"
"laminas/laminas-stdlib": "^3.10"
},
"require-dev": {
"laminas/laminas-cache": "^2.6.1",
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dd9d106

Please sign in to comment.