Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ The format is based on Keep a Changelog.
- Added adapter-based Lang provider support with `DeepL` and `Google Translate` adapters plus shared remote request/caching infrastructure (#533)

### Changed
- Corrected cache adapter deserialization exception handling and `ModelCollection` key type declarations (#570)
- Refactored `HttpClient` internals behind explicit `CurlAdapter` and `MultiCurlAdapter` wrappers while preserving the existing facade methods and keeping `php-curl-class` as the underlying transport for this phase (#534)
- Replaced the single-request `HttpClient` `CurlAdapter` execution path with native PHP cURL (#566)
- Replaced the multi-request `HttpClient` `MultiCurlAdapter` execution path with native PHP multi-curl and removed the `php-curl-class` dependency while preserving facade, factory, helper, callback, and response aggregation behavior (#567)
Expand Down
4 changes: 2 additions & 2 deletions src/Cache/Adapters/FileAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
use Quantum\Storage\FileSystem;
use InvalidArgumentException;
use ReflectionException;
use Exception;
use Throwable;

/**
* Class FileAdapter
Expand Down Expand Up @@ -66,7 +66,7 @@ public function get($key, $default = null)

try {
return unserialize($cacheItem);
} catch (Exception) {
} catch (Throwable) {
$this->delete($key);
return $default;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Cache/Adapters/MemcachedAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Psr\SimpleCache\CacheInterface;
use InvalidArgumentException;
use Memcached;
use Exception;
use Throwable;

/**
* Class MemcachedAdapter
Expand Down Expand Up @@ -56,7 +56,7 @@ public function get($key, $default = null)

try {
return unserialize($cacheItem);
} catch (Exception) {
} catch (Throwable) {
$this->delete($key);
return $default;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Cache/Adapters/RedisAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Psr\SimpleCache\CacheInterface;
use InvalidArgumentException;
use RedisException;
use Exception;
use Throwable;
use Redis;

/**
Expand Down Expand Up @@ -51,7 +51,7 @@ public function get($key, $default = null)

try {
return unserialize($cacheItem);
} catch (Exception) {
} catch (Throwable) {
$this->delete($key);
return $default;
}
Expand Down
6 changes: 3 additions & 3 deletions src/Model/ModelCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,17 @@
* @package Quantum\Model
* @template TKey of array-key
* @template TValue of Model
* @implements IteratorAggregate<TKey, TValue>
* @implements IteratorAggregate<int|TKey, TValue>
*/
class ModelCollection implements Countable, IteratorAggregate
{
/**
* @var array<TKey, TValue>
* @var array<int, TValue>
*/
private array $models = [];

/**
* @var iterable<TKey, TValue>
* @var iterable<int|TKey, TValue>
*/
private iterable $originalModels;

Expand Down
Loading