-
Notifications
You must be signed in to change notification settings - Fork 536
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't throw an exception if Encoding doesn't have BaseEncoding (#433)
* Dont crash when a Encoding doesn't have BaseEncoding * Create a specific Exception for encoding not found * Fix phpdoc and change exception in catch * Improve test * Create a test for Encoding without BaseEncoding * Update src/Smalot/PdfParser/Font.php Co-authored-by: Konrad Abicht <[email protected]> * Update tests/Integration/FontTest.php Co-authored-by: Konrad Abicht <[email protected]> * Move EncodingNotFoundException to src/Smalot/PdfParser/Exception Co-authored-by: Konrad Abicht <[email protected]>
- Loading branch information
1 parent
b32bb7a
commit 35c8812
Showing
5 changed files
with
34 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?php | ||
|
||
namespace Smalot\PdfParser\Exception; | ||
|
||
class EncodingNotFoundException extends \Exception | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters