Skip to content

Commit

Permalink
Release v2.0.02
Browse files Browse the repository at this point in the history
  • Loading branch information
rvwoens committed Aug 8, 2023
1 parent d3fed56 commit ccf735b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Validate composer.json and composer.lock
run: composer validate

- name: Cache Composer packages
id: composer-cache
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: vendor
key: ${{ runner.os }}-php-${{ hashFiles('**/composer.lock') }}
Expand Down
3 changes: 2 additions & 1 deletion src/SinBase.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?php namespace Cosninix\Sin;

use ArgumentCountError;
use Exception;
use Illuminate\Contracts\Config\Repository as Config;
use Illuminate\Support\Facades\Lang;
Expand Down Expand Up @@ -95,7 +96,7 @@ public function lang() {
try {
return call_user_func_array('sprintf', $args);
}
catch(Exception $e) {
catch(ArgumentCountError $e) {
return $translation(); // exception in sprintf. Possible mismatched %s
}

Expand Down
2 changes: 1 addition & 1 deletion src/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
// auto-generated by pusher

return [
'version'=>'v2.0.01'
'version'=>'v2.0.02'
];

0 comments on commit ccf735b

Please sign in to comment.