Aggiornato Composer

This commit is contained in:
Paolo A
2024-05-17 12:24:19 +00:00
parent 4ac62108b5
commit ec201d75b2
2238 changed files with 38684 additions and 59785 deletions

File diff suppressed because one or more lines are too long

View File

@@ -20,7 +20,7 @@
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.14",
"spatie/phpunit-snapshot-assertions": "^2.0",
"phpunit/phpunit": "^7.5.16"
"phpunit/phpunit": "^7.5"
},
"autoload": {
"psr-4": {

View File

@@ -59,6 +59,9 @@ class Flare
/** @var callable|null */
protected $filterExceptionsCallable;
/** @var callable|null */
protected $filterReportsCallable;
public static function register(string $apiKey, string $apiSecret = null, ContextDetectorInterface $contextDetector = null, Container $container = null)
{
$client = new Client($apiKey, $apiSecret);
@@ -81,6 +84,11 @@ class Flare
$this->filterExceptionsCallable = $filterExceptionsCallable;
}
public function filterReportsUsing(callable $filterReportsCallable)
{
$this->filterReportsCallable = $filterReportsCallable;
}
/**
* @return null|string
*/
@@ -242,6 +250,12 @@ class Flare
private function sendReportToApi(Report $report)
{
if ($this->filterReportsCallable) {
if (! call_user_func($this->filterReportsCallable, $report)) {
return;
}
}
try {
$this->api->report($report);
} catch (Exception $exception) {

View File

@@ -322,7 +322,6 @@ class Report
{
// Generate 16 bytes (128 bits) of random data or use the data passed into the function.
$data = $data ?? random_bytes(16);
assert(strlen($data) == 16);
// Set version to 0100
$data[6] = chr(ord($data[6]) & 0x0f | 0x40);

View File

@@ -2,6 +2,34 @@
All notable changes to `ignition` will be documented in this file
## 2.17.6 - 2022-06-30
### What's Changed
- notice if dots have been used in the view name by @WebPajooh in https://github.com/facade/ignition/pull/457
### New Contributors
- @WebPajooh made their first contribution in https://github.com/facade/ignition/pull/457
**Full Changelog**: https://github.com/facade/ignition/compare/2.17.5...2.17.6
## 2.17.5 - 2022-02-23
## What's Changed
- fix solutions section padding by @faissaloux in https://github.com/facade/ignition/pull/433
- Bump markdown-it from 9.1.0 to 12.3.2 by @dependabot in https://github.com/facade/ignition/pull/446
- Bump ajv from 6.10.2 to 6.12.6 by @dependabot in https://github.com/facade/ignition/pull/448
- Fix E_NOTICE when requesting invalid script by @cweiske in https://github.com/facade/ignition/pull/449
## New Contributors
- @faissaloux made their first contribution in https://github.com/facade/ignition/pull/433
- @cweiske made their first contribution in https://github.com/facade/ignition/pull/449
**Full Changelog**: https://github.com/facade/ignition/compare/2.17.4...2.17.5
## 2.17.4 - 2021-12-27
- fix bug where uninitialized property within a job could break Ignition

View File

@@ -9,9 +9,10 @@ class ScriptController
{
public function __invoke(Request $request)
{
if (!isset(Ignition::scripts()[$request->script])) {
if (! isset(Ignition::scripts()[$request->script])) {
abort(404, 'Script not found');
}
return response(
file_get_contents(
Ignition::scripts()[$request->script]

View File

@@ -49,7 +49,7 @@ class MergeConflictSolutionProvider implements HasSolutionsForThrowable
protected function getCurrentBranch(string $directory): string
{
$branch = "'".trim(shell_exec("cd ${directory}; git branch | grep \\* | cut -d ' ' -f2"))."'";
$branch = "'".trim(shell_exec("cd {$directory}; git branch | grep \\* | cut -d ' ' -f2"))."'";
if ($branch === "''") {
$branch = 'current branch';

View File

@@ -34,6 +34,13 @@ class ViewNotFoundSolutionProvider implements HasSolutionsForThrowable
$suggestedView = $this->findRelatedView($missingView);
if ($suggestedView == $missingView) {
return [
BaseSolution::create("{$missingView} was not found.")
->setSolutionDescription('View names should not contain the . character!'),
];
}
if ($suggestedView) {
return [
BaseSolution::create("{$missingView} was not found.")