Skip to content

Commit 76a09d4

Browse files
authored
Merge pull request #51 from noplanman/cleanup
Simplify FQNs, cleanup tests and update changelog.
2 parents f35f995 + 9f505f4 commit 76a09d4

File tree

8 files changed

+145
-143
lines changed

8 files changed

+145
-143
lines changed

CHANGELOG.md

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,51 +6,50 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
66
## [Unreleased]
77
### Added
88
### Changed
9-
- Upgraded dependencies and bumped core to version 0.59.0.
10-
- Code style is now PSR12.
11-
- Adopt issue templates and git/GitHub related meta from upstream core.
9+
- Upgraded dependencies and bumped core to version 0.59.0. (#48)
10+
- Code style is now PSR12. (#48)
11+
- Adopt issue templates and git/GitHub related meta from upstream core. (#49)
12+
- Simplify FQNs, cleanup tests and update changelog.
1213
### Deprecated
1314
### Removed
14-
- Botan.io has been removed (see php-telegram-bot/core#924)
15+
- Botan.io has been removed (see php-telegram-bot/core#924). (#50)
1516
### Fixed
1617
### Security
17-
- Security disclosure managed by [Tidelift].
18+
- Security disclosure managed by [Tidelift]. (#49)
1819

1920
## [1.4.0] - 2019-06-01
2021
### Added
21-
- Test up to PHP 7.3 in Travis-CI.
22+
- Test up to PHP 7.3 in Travis-CI. (#47)
2223
### Changed
23-
- Use the new Telegram API webhook IP ranges.
24-
- Upgraded dependencies and bumped core to version 0.57.0.
24+
- Use the new Telegram API webhook IP ranges. (#46)
25+
- Upgraded dependencies and bumped core to version 0.57.0. (#47)
2526
### Security
26-
- Minimum PHP version is now 7.1.
27+
- Minimum PHP version is now 7.1. (#47)
2728

2829
## [1.3.0] - 2018-07-21
2930
### Added
3031
- Allow usage of table prefixes and custom encoding.
31-
- Add error message when trying to use getUpdates without database connection.
32+
- Add error message when trying to use getUpdates without database connection. (#41)
3233
### Changed
33-
- Bumped to core version 0.54.0
34-
- Bumped dependencies.
34+
- Upgraded dependencies and bumped core to version 0.54.0.
3535

3636
## [1.2.2] - 2017-08-26
3737
### Added
3838
- Linked version numbers in changelog for easy verification of code changes.
3939
### Changed
40-
- Bumped to core version 0.48.0
41-
- Bumped dependencies.
40+
- Upgraded dependencies and bumped core to version 0.48.0.
4241

4342
## [1.2.1] - 2017-07-12
4443
### Fixed
45-
- Secret should not be required when using CLI for getUpdates.
44+
- Secret should not be required when using CLI for getUpdates. (#36)
4645

4746
## [1.2.0] - 2017-07-10
4847
### Added
49-
- Custom output callback can be defined for getUpdates method.
48+
- Custom output callback can be defined for getUpdates method. (#34)
5049
### Changed
51-
- Default output of getUpdates method now shows the message type or query text, not the text message content.
50+
- Default output of getUpdates method now shows the message type or query text, not the text message content. (#34)
5251
### Fixed
53-
- GetUpdates method would crash if a non-text message was sent.
52+
- GetUpdates method would crash if a non-text message was sent. (#34)
5453

5554
## [1.1.0] - 2017-05-23
5655
### Added
@@ -91,7 +90,7 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
9190
### Added
9291
- Changelog.
9392
### Changed
94-
- (!) Rename vital parameter `botname` to `bot_username` everywhere.
93+
- :exclamation: Rename vital parameter `botname` to `bot_username` everywhere.
9594
### Fixed
9695
- Some code style issues.
9796

src/Action.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class Action
3636
*
3737
* @param string $action
3838
*
39-
* @throws \TelegramBot\TelegramBotManager\Exception\InvalidActionException
39+
* @throws InvalidActionException
4040
*/
4141
public function __construct($action = 'handle')
4242
{
@@ -56,7 +56,7 @@ public function __construct($action = 'handle')
5656
*/
5757
public function isAction($actions): bool
5858
{
59-
return \in_array($this->action, (array) $actions, true);
59+
return in_array($this->action, (array) $actions, true);
6060
}
6161

6262
/**

0 commit comments

Comments
 (0)