Skip to content

Commit

Permalink
Updating get source method
Browse files Browse the repository at this point in the history
  • Loading branch information
karllhughes committed Dec 23, 2016
1 parent f7baef0 commit 1f4e1a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
# Changelog
All Notable changes to `jobs-common` will be documented in this file

## 2.1.1 - 2016-12-23

### Fixed
- Bug in `getSource` method. It was truncating at the wrong place.

## 2.1.0 - 2016-12-01

### Added
Expand Down
2 changes: 1 addition & 1 deletion src/Providers/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function getSource()

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

return $className;
Expand Down

0 comments on commit 1f4e1a2

Please sign in to comment.