Skip to content

Commit 69b4e98

Browse files
authored
Merge pull request #55 from visto9259/master
Fix issue #50, update to GH actions name and README badges
2 parents 3fedbab + 7f6e671 commit 69b4e98

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/build_test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build
1+
name: Continuous Integration
22

33
on:
44
push:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ LmcUser
33
[![Latest Stable Version](http://poser.pugx.org/lm-commons/lmc-user/v)](https://packagist.org/packages/lm-commons/lmc-user)
44
[![Total Downloads](http://poser.pugx.org/lm-commons/lmc-user/downloads)](https://packagist.org/packages/lm-commons/lmc-user)
55
[![Build](https://github.com/visto9259/LmcUser/actions/workflows/build_test.yml/badge.svg)](https://github.com/visto9259/LmcUser/actions/workflows/build_test.yml)
6+
![Dynamic JSON Badge](https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fapi.github.com%2Frepos%2Flm-commons%2Flmcrbacmvc%2Fproperties%2Fvalues&query=%24%5B%3A1%5D.value&label=Maintenance%20Status)
67
[![Gitter](https://badges.gitter.im/LM-Commons/community.svg)](https://gitter.im/LM-Commons/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
78

89
Based on ZfcUser by Evan Coury and the ZF-Commons team

src/Entity/User.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,12 @@ public function getId()
5252
*/
5353
public function setId($id)
5454
{
55-
$this->id = (int) $id;
55+
if (is_null($id)) {
56+
$this->id = $id;
57+
}
58+
else {
59+
$this->id = (int)$id;
60+
}
5661
return $this;
5762
}
5863

0 commit comments

Comments
 (0)