Skip to content

Commit dd0ff64

Browse files
2.23.3
1 parent f7a6b18 commit dd0ff64

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,8 +655,10 @@ Commonly, the log format could be of the type info or error. Flag could show a
655655
Dual license (LGPL 3.0 and Commercial). See LICENSE file.
656656

657657
## Version
658+
* 2.23.3 2023-06-29
659+
* fix another with flag::pull() where the msg is null
658660
* 2.23.2 2023-06-29
659-
* fix a bgu with flag:push where the value is null.
661+
* fix a bug with flag::push() where the value is null.
660662
* 2.23.1 23-03-11
661663
* updated dependencies.
662664
* 2.23 22-09-11

lib/Flags.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
* @package eftec\statemachineone
1919
* @author Jorge Patricio Castro Castillo <jcastro arroba eftec dot cl>
20-
* @version 2.15 2021-09-18
20+
* @version 2.23.3 2023-06-29
2121
* @link https://github.com/EFTEC/StateMachineOne
2222
*/
2323
class Flags implements StateSerializable
@@ -125,15 +125,15 @@ public function getTime($microtime = false)
125125
* pull('light','lights out',2); // It removes the flag light with message light out and level 0
126126
* pull('light','lights out',2,400); // It removes the flag light #400 with message light out and level 0
127127
* </pre>
128-
* @param string|int $idUnique This value is used to identify each flag
128+
* @param string|int $idUnique This value is used to identify each flag
129129
*
130-
* @param string $msg (optional) used for log
131-
* @param int $level (optional) used for log
132-
* @param int $idRel (optional) ID related (for example, the id of the job) used for log
130+
* @param string|null $msg (optional) used for log
131+
* @param int $level (optional) used for log
132+
* @param int $idRel (optional) ID related (for example, the id of the job) used for log
133133
*
134134
* @return $this
135135
*/
136-
public function pull(string $idUnique = '', string $msg = '', int $level = 0, int $idRel = 0): self
136+
public function pull(string $idUnique = '', ?string $msg = '', int $level = 0, int $idRel = 0): self
137137
{
138138
if (isset($this->stack[$idUnique])) {
139139
unset($this->stack[$idUnique], $this->stackId[$idUnique], $this->timeExpire[$idUnique]);

lib/StateMachineOne.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*
2424
* @package eftec\statemachineone
2525
* @author Jorge Patricio Castro Castillo <jcastro arroba eftec dot cl>
26-
* @version 2.23.1 2023-03-11
26+
* @version 2.23.3 2023-06-29
2727
* @license LGPL-3.0 (you could use in a comercial-close-source product but any change to this library must be shared)
2828
* @link https://github.com/EFTEC/StateMachineOne
2929
*/

0 commit comments

Comments
 (0)