Skip to content

Commit 044d574

Browse files
committed
v0.2.0 release
1 parent 0b8a5b3 commit 044d574

15 files changed

Lines changed: 34 additions & 66 deletions

.php-cs-fixer.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
'no_whitespace_in_blank_line' => true,
99
'return_type_declaration' => true,
1010
'native_function_invocation' => ['include' => ['@all']],
11+
'phpdoc_align' => true,
12+
'phpdoc_separation' => true,
13+
'phpdoc_line_span' => ['property' => 'single', 'const' => 'single']
1114
])
1215
->setFinder(PhpCsFixer\Finder::create()
1316
->exclude('vendor')

.styleci.yml

Lines changed: 0 additions & 8 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@ All notable changes to this project will be documented in this file.
66
The format is based on [Keep a Changelog](http://keepachangelog.com/)
77
and this project adheres to [Semantic Versioning](http://semver.org/).
88

9-
## [v0.2.0](https://github.com/linna/auth-mapper-pgsql/compare/v0.2.0...master) - 2020-XX-XX
9+
## [v0.2.0](https://github.com/linna/auth-mapper-pgsql/compare/v0.2.0...master) - 2022-10-03
1010

1111
* Start with v0.2.0 for match `auth-mapper-mysql` version
1212

13+
### Changed
14+
* PHP 8.1 required
15+
* strict typing updated to provide compatibility with the next version of the framework
16+
* `composer.json` `require` and `require-dev` sections updated
17+
* tests updated
18+
1319
### Added
1420
* `Linna\Authentication\EnhancedAuthenticationMapper` class
1521
* `Linna\Authentication\UserMapper` class

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<div align="center">
2-
<a href="#"><img src="logo-linna-96.png" alt="Linna Logo"></a>
2+
<a href="#"><img src="logo-linna-128.png" alt="Linna Logo"></a>
33
</div>
44

55
<br/>
@@ -13,7 +13,6 @@
1313
<div align="center">
1414

1515
[![Tests](https://github.com/linna/auth-mapper-pgsql/actions/workflows/tests.yml/badge.svg)](https://github.com/linna/auth-mapper-pgsql/actions/workflows/tests.yml)
16-
[![StyleCI](https://github.styleci.io/repos/209962835/shield?branch=master&style=flat)](https://github.styleci.io/repos/209962835)
1716
[![PDS Skeleton](https://img.shields.io/badge/pds-skeleton-blue.svg?style=flat)](https://github.com/php-pds/skeleton)
1817
[![PHP 8.1](https://img.shields.io/badge/PHP-8.1-8892BF.svg)](http://php.net)
1918

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
"ext-pgsql": "*"
2424
},
2525
"require-dev": {
26-
"infection/infection": "^0.21",
27-
"phpstan/phpstan": "^0.12",
28-
"phpunit/phpunit": "^9.0",
29-
"linna/framework": "dev-master",
26+
"infection/infection": ">=0.26",
27+
"phpstan/phpstan": ">=1.8",
28+
"phpunit/phpunit": ">=9.0",
29+
"linna/framework": "^0.27.0",
3030
"linna/db-dumps": "dev-master",
3131
"linna/auth-mapper-test-trait": "dev-master"
3232
},

logo-linna-128.png

11.4 KB
Loading

logo-linna-96.png

-1.52 KB
Binary file not shown.

src/Linna/Authentication/EnhancedAuthenticationMapper.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,10 @@
2424
*/
2525
class EnhancedAuthenticationMapper extends MapperAbstract implements EnhancedAuthenticationMapperInterface
2626
{
27-
/**
28-
* @var ExtendedPDO Database Connection
29-
*/
27+
/** @var ExtendedPDO Database Connection */
3028
protected ExtendedPDO $pdo;
3129

32-
/**
33-
* @var string Constant part of SELECT query
34-
*/
30+
/** @var string Constant part of SELECT query */
3531
protected string $baseQuery = 'SELECT login_attempt_id AS "id", user_name AS "userName", session_id AS "sessionId", ip as "ipAddress", date_time AS "when", created, last_update AS lastUpdate FROM public.login_attempt';
3632

3733
/**

src/Linna/Authentication/UserMapper.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,13 @@
2525
*/
2626
class UserMapper extends MapperAbstract implements UserMapperInterface
2727
{
28-
/**
29-
* @var Password Password util for user object
30-
*/
28+
/** @var Password Password util for user object */
3129
protected Password $password;
3230

33-
/**
34-
* @var ExtendedPDO Database Connection
35-
*/
31+
/** @var ExtendedPDO Database Connection */
3632
protected ExtendedPDO $pdo;
3733

38-
/**
39-
* @var string Constant part of SELECT query
40-
*/
34+
/** @var string Constant part of SELECT query */
4135
protected string $baseQuery = 'SELECT user_id AS "id", uuid, name, email, description, password, active, created, last_update AS "lastUpdate" FROM public.user';
4236

4337
/**

src/Linna/Authorization/EnhancedUserMapper.php

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,10 @@
2727
*/
2828
class EnhancedUserMapper extends UserMapper implements EnhancedUserMapperInterface
2929
{
30-
/**
31-
* @var PermissionMapperInterface Permission Mapper
32-
*/
30+
/** @var PermissionMapperInterface Permission Mapper */
3331
protected PermissionMapperInterface $permissionMapper;
3432

35-
/**
36-
* @var RoleToUserMapperInterface Role to user Mapper
37-
*/
33+
/** @var RoleToUserMapperInterface Role to user Mapper */
3834
protected RoleToUserMapperInterface $roleToUserMapper;
3935

4036
/**

0 commit comments

Comments
 (0)