Skip to content

Commit

Permalink
Merge pull request #55 from visto9259/master
Browse files Browse the repository at this point in the history
Fix issue #50, update to GH actions name and README badges
  • Loading branch information
visto9259 authored Mar 14, 2024
2 parents 3fedbab + 7f6e671 commit 69b4e98
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Continuous Integration

on:
push:
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ LmcUser
[![Latest Stable Version](http://poser.pugx.org/lm-commons/lmc-user/v)](https://packagist.org/packages/lm-commons/lmc-user)
[![Total Downloads](http://poser.pugx.org/lm-commons/lmc-user/downloads)](https://packagist.org/packages/lm-commons/lmc-user)
[![Build](https://github.com/visto9259/LmcUser/actions/workflows/build_test.yml/badge.svg)](https://github.com/visto9259/LmcUser/actions/workflows/build_test.yml)
![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)
[![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)

Based on ZfcUser by Evan Coury and the ZF-Commons team
Expand Down
7 changes: 6 additions & 1 deletion src/Entity/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ public function getId()
*/
public function setId($id)
{
$this->id = (int) $id;
if (is_null($id)) {
$this->id = $id;
}
else {
$this->id = (int)$id;
}
return $this;
}

Expand Down

0 comments on commit 69b4e98

Please sign in to comment.