Skip to content

Commit

Permalink
Merge pull request #4 from visto9259/1.0.x
Browse files Browse the repository at this point in the history
Second interim version
  • Loading branch information
visto9259 authored Nov 1, 2024
2 parents 95e1369 + d0fc404 commit 5f0eede
Show file tree
Hide file tree
Showing 19 changed files with 651 additions and 264 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@
/test/ export-ignore
/autoload-dev/ export-ignore
/docker-compose-mysql.yml export-ignore
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
*.php text eol=lf
11 changes: 11 additions & 0 deletions .github/workflows/continous-integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: "Continuous Integration"

on:
pull_request:
push:
branches:
tags:

jobs:
ci:
uses: laminas/workflow-continuous-integration/.github/workflows/[email protected]
17 changes: 17 additions & 0 deletions .github/workflows/release-on-milestone-closed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions

name: "Automatic Releases"

on:
milestone:
types:
- "closed"

jobs:
release:
uses: laminas/workflow-automatic-releases/.github/workflows/[email protected]
secrets:
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
ORGANIZATION_ADMIN_TOKEN: ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
SIGNING_SECRET_KEY: ${{ secrets.SIGNING_SECRET_KEY }}
23 changes: 23 additions & 0 deletions .psalm-stubs/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): mixed;
}
}
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"doctrine/doctrine-module": "^6.0"
},
"require-dev": {
"laminas/laminas-coding-standard": "^2.5",
"laminas/laminas-coding-standard": "^3.0",
"phpunit/phpunit": "^10.5",
"psalm/plugin-phpunit": "^0.19",
"vimeo/psalm": "^5.25"
Expand All @@ -40,6 +40,9 @@
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
},
"platform": {
"php": "8.1.99"
}
},
"scripts": {
Expand Down
Loading

0 comments on commit 5f0eede

Please sign in to comment.