Skip to content

Commit 1f4e1a2

Browse files
committed
Updating get source method
1 parent f7baef0 commit 1f4e1a2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Changelog
22
All Notable changes to `jobs-common` will be documented in this file
33

4+
## 2.1.1 - 2016-12-23
5+
6+
### Fixed
7+
- Bug in `getSource` method. It was truncating at the wrong place.
8+
49
## 2.1.0 - 2016-12-01
510

611
### Added

src/Providers/AbstractProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ public function getSource()
126126

127127
// Strip off the suffix from the provider
128128
if ($this->stringEndsWith($className, $classSuffix)) {
129-
$className = substr($className, 0, strlen($classSuffix));
129+
$className = substr($className, 0, strlen($className) - strlen($classSuffix));
130130
}
131131

132132
return $className;

0 commit comments

Comments
 (0)