Skip to content

Commit 8f55c0c

Browse files
add not assocable value in array for global use, one time use in domi package
1 parent 9c3b6d6 commit 8f55c0c

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

Diff for: src/Exceptions/ArrayNotAssocException.php

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
namespace JobMetric\PackageCore\Exceptions;
4+
5+
use Exception;
6+
use Throwable;
7+
8+
class ArrayNotAssocException extends Exception
9+
{
10+
public function __construct(int $code = 400, ?Throwable $previous = null)
11+
{
12+
parent::__construct('Array must be assoc keys', $code, $previous);
13+
}
14+
}

0 commit comments

Comments
 (0)