Skip to content

Commit

Permalink
Merge pull request #25 from gsteel/general-maintenance
Browse files Browse the repository at this point in the history
General maintenance
  • Loading branch information
Ocramius authored Sep 16, 2022
2 parents 46f59a0 + 39f8e78 commit 5cdd905
Show file tree
Hide file tree
Showing 22 changed files with 519 additions and 680 deletions.
2 changes: 0 additions & 2 deletions .coveralls.yml

This file was deleted.

8 changes: 5 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
/.coveralls.yml export-ignore
/.docheader export-ignore
/.gitattributes export-ignore
/.gitignore export-ignore
/.travis.yml export-ignore
/.psr-container.php.stub export-ignore
/.laminas-ci.json export-ignore
/renovate.json export-ignore
/docs/ export-ignore
/phpcs.xml export-ignore
/psalm.xml export-ignore
/psalm-baseline.xml export-ignore
/phpunit.xml.dist export-ignore
/test/ export-ignore
3 changes: 0 additions & 3 deletions .laminas-ci.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
{
"ignore_php_platform_requirements": {
"8.1": true
}
}
24 changes: 24 additions & 0 deletions .psr-container.php.stub
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?php

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
* @return bool
*/
public function has(string $id);

/**
* @template T
* @psalm-param string|class-string<T> $id
* @psalm-return ($id is class-string ? T : mixed)
*/
public function get(string $id);
}
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# laminas-view PhpRenderer Integration for Mezzio

[![Build Status](https://github.com/mezzio/mezzio-laminasviewrenderer/workflows/Continuous%20Integration/badge.svg)](https://github.com/mezzio/mezzio-laminasviewrenderer/actions?query=workflow%3A"Continuous+Integration")
[![Type Coverage](https://shepherd.dev/github/mezzio/mezzio-laminasviewrenderer/coverage.svg)](https://shepherd.dev/github/mezzio/mezzio-laminasviewrenderer)

[laminas-view PhpRenderer](https://github.com/laminas/laminas-view) integration
for [Mezzio](https://github.com/mezzio/mezzio).
Expand Down
6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,9 @@
},
"require-dev": {
"laminas/laminas-coding-standard": "~2.4.0",
"phpspec/prophecy": "^1.14.0",
"phpspec/prophecy-phpunit": "^2.0.1",
"phpunit/phpunit": "^9.5.10",
"phpunit/phpunit": "^9.5.24",
"psalm/plugin-phpunit": "^0.17.0",
"vimeo/psalm": "^4.10"
"vimeo/psalm": "^4.27.0"
},
"conflict": {
"container-interop/container-interop": "<1.2.0",
Expand Down
Loading

0 comments on commit 5cdd905

Please sign in to comment.