language stringclasses 1
value | owner stringlengths 2 15 | repo stringlengths 2 21 | sha stringlengths 45 45 | message stringlengths 7 36.3k | path stringlengths 1 199 | patch stringlengths 15 102k | is_multipart bool 2
classes |
|---|---|---|---|---|---|---|---|
Other | chartjs | Chart.js | f5b4a0fa3c933ac443b66cfa3e0198f4f342a410.json | Improve test coverage and fix minor issues found (#7713)
* Registry
* Element
* Animation
* Animations
* Animator | test/specs/core.element.tests.js | @@ -0,0 +1,16 @@
+describe('Chart.element', function() {
+ describe('getProps', function() {
+ it('should return requested properties', function() {
+ const elem = new Chart.Element();
+ elem.x = 10;
+ elem.y = 1.5;
+
+ expect(elem.getProps(['x', 'y'])).toEqual(jasmine.objectContaining({x: 10, y: 1.5}));
+ e... | true |
Other | chartjs | Chart.js | f5b4a0fa3c933ac443b66cfa3e0198f4f342a410.json | Improve test coverage and fix minor issues found (#7713)
* Registry
* Element
* Animation
* Animations
* Animator | test/specs/core.registry.tests.js | @@ -64,7 +64,7 @@ describe('Chart.registry', function() {
expect(Chart.defaults.elements.myElement).not.toBeDefined();
});
- it('should handle a classig plugin', function() {
+ it('should handle a classic plugin', function() {
const CustomPlugin = {
id: 'customPlugin',
defaults: {
@@ -172,4 +172,169 @... | true |
Other | chartjs | Chart.js | f79d609548aebc6d70b16a51a80574827f051713.json | Add offset option for arc (#7691)
* Add offset option for arc
* Finishing touches | docs/docs/charts/doughnut.mdx | @@ -10,9 +10,22 @@ Pie and doughnut charts are effectively the same class in Chart.js, but have one
They are also registered under two aliases in the `Chart` core. Other than their different default value, and different alias, they are exactly the same.
-import { useEffect } from 'react';
-
-export const ExampleCh... | true |
Other | chartjs | Chart.js | f79d609548aebc6d70b16a51a80574827f051713.json | Add offset option for arc (#7691)
* Add offset option for arc
* Finishing touches | src/controllers/controller.doughnut.js | @@ -89,9 +89,9 @@ export default class DoughnutController extends DatasetController {
const cutout = options.cutoutPercentage / 100 || 0;
const chartWeight = me._getRingWeight(me.index);
const {ratioX, ratioY, offsetX, offsetY} = getRatioAndOffset(options.rotation, options.circumference, cutout);
- const bord... | true |
Other | chartjs | Chart.js | f79d609548aebc6d70b16a51a80574827f051713.json | Add offset option for arc (#7691)
* Add offset option for arc
* Finishing touches | src/controllers/controller.polarArea.js | @@ -148,9 +148,7 @@ PolarAreaController.defaults = {
'borderColor',
'borderWidth',
'borderAlign',
- 'hoverBackgroundColor',
- 'hoverBorderColor',
- 'hoverBorderWidth'
+ 'offset'
],
animation: { | true |
Other | chartjs | Chart.js | f79d609548aebc6d70b16a51a80574827f051713.json | Add offset option for arc (#7691)
* Add offset option for arc
* Finishing touches | src/core/core.datasetController.js | @@ -714,7 +714,7 @@ export default class DatasetController {
/**
* @param {number} index
- * @param {string} mode
+ * @param {string} [mode]
* @protected
*/
resolveDataElementOptions(index, mode) { | true |
Other | chartjs | Chart.js | f79d609548aebc6d70b16a51a80574827f051713.json | Add offset option for arc (#7691)
* Add offset option for arc
* Finishing touches | src/elements/element.arc.js | @@ -3,17 +3,17 @@ import {_angleBetween, getAngleFromPoint} from '../helpers/helpers.math';
const TAU = Math.PI * 2;
-function clipArc(ctx, model) {
- const {startAngle, endAngle, pixelMargin, x, y} = model;
- let angleMargin = pixelMargin / model.outerRadius;
+function clipArc(ctx, element) {
+ const {startAngle,... | true |
Other | chartjs | Chart.js | e756fb93a3b8cb5a29de04d9bcf972295e38b21f.json | Resolve fonts through options.font (#7674)
* Resolve fonts through options.font
* Remove defaultRoutes from Tooltip fonts | src/core/core.scale.js | @@ -142,12 +142,12 @@ function getTickMarkLength(options) {
/**
* @param {object} options
*/
-function getScaleLabelHeight(options) {
+function getScaleLabelHeight(options, fallback) {
if (!options.display) {
return 0;
}
- const font = toFont(options.font);
+ const font = toFont(options.font, fallback);
... | true |
Other | chartjs | Chart.js | e756fb93a3b8cb5a29de04d9bcf972295e38b21f.json | Resolve fonts through options.font (#7674)
* Resolve fonts through options.font
* Remove defaultRoutes from Tooltip fonts | src/helpers/helpers.options.js | @@ -67,27 +67,29 @@ export function toPadding(value) {
/**
* Parses font options and returns the font object.
* @param {object} options - A object that contains font options to be parsed.
+ * @param {object} [fallback] - A object that contains fallback font options.
* @return {object} The font object.
* @priva... | true |
Other | chartjs | Chart.js | e756fb93a3b8cb5a29de04d9bcf972295e38b21f.json | Resolve fonts through options.font (#7674)
* Resolve fonts through options.font
* Remove defaultRoutes from Tooltip fonts | src/plugins/plugin.legend.js | @@ -178,7 +178,7 @@ export class Legend extends Element {
const display = opts.display;
const ctx = me.ctx;
- const labelFont = toFont(labelOpts.font);
+ const labelFont = toFont(labelOpts.font, me.chart.options.font);
const fontSize = labelFont.size;
const boxWidth = getBoxWidth(labelOpts, fontSize);
... | true |
Other | chartjs | Chart.js | e756fb93a3b8cb5a29de04d9bcf972295e38b21f.json | Resolve fonts through options.font (#7674)
* Resolve fonts through options.font
* Remove defaultRoutes from Tooltip fonts | src/plugins/plugin.title.js | @@ -107,7 +107,7 @@ export class Title extends Element {
const lineCount = isArray(opts.text) ? opts.text.length : 1;
me._padding = toPadding(opts.padding);
- const textSize = lineCount * toFont(opts.font).lineHeight + me._padding.height;
+ const textSize = lineCount * toFont(opts.font, me.chart.options.font)... | true |
Other | chartjs | Chart.js | e756fb93a3b8cb5a29de04d9bcf972295e38b21f.json | Resolve fonts through options.font (#7674)
* Resolve fonts through options.font
* Remove defaultRoutes from Tooltip fonts | src/plugins/plugin.tooltip.js | @@ -135,14 +135,15 @@ function createTooltipItem(chart, item) {
/**
* Helper to get the reset model for the tooltip
* @param options {object} the tooltip options
+ * @param fallbackFont {object} the fallback font options
*/
-function resolveOptions(options) {
+function resolveOptions(options, fallbackFont) {
... | true |
Other | chartjs | Chart.js | e756fb93a3b8cb5a29de04d9bcf972295e38b21f.json | Resolve fonts through options.font (#7674)
* Resolve fonts through options.font
* Remove defaultRoutes from Tooltip fonts | src/scales/scale.radialLinear.js | @@ -102,7 +102,7 @@ function fitWithPointLabels(scale) {
index: i,
label: scale.pointLabels[i]
};
- const plFont = toFont(resolve([scale.options.pointLabels.font], context, i));
+ const plFont = toFont(resolve([scale.options.pointLabels.font], context, i), scale.chart.options.font);
scale.ctx.font = plF... | true |
Other | chartjs | Chart.js | e756fb93a3b8cb5a29de04d9bcf972295e38b21f.json | Resolve fonts through options.font (#7674)
* Resolve fonts through options.font
* Remove defaultRoutes from Tooltip fonts | test/specs/plugin.title.tests.js | @@ -19,7 +19,9 @@ describe('Title block tests', function() {
});
it('should update correctly', function() {
- var chart = {};
+ var chart = {
+ options: Chart.helpers.clone(Chart.defaults)
+ };
var options = Chart.helpers.clone(Chart.defaults.plugins.title);
options.text = 'My title';
@@ -44,7 +46,9 ... | true |
Other | chartjs | Chart.js | da0764a585db495c18f2f450f8b3cb32a68b374e.json | Fix casing of dist files in docs (#7670) | .github/ISSUE_TEMPLATE/BUG.md | @@ -32,7 +32,7 @@ labels: 'type: bug'
interactive example (https://codepen.io/pen?template=JXVYzq).
If filing a bug against `master`, you may reference the latest code via
- https://www.chartjs.org/dist/master/Chart.min.js (changing the filename to
+ https://www.chartjs.org/dist/master/chart.min.js (changing ... | true |
Other | chartjs | Chart.js | da0764a585db495c18f2f450f8b3cb32a68b374e.json | Fix casing of dist files in docs (#7670) | docs/docs/developers/contributing.md | @@ -78,6 +78,6 @@ Guidelines for reporting bugs:
- Check the issue search to see if it has already been reported
- Isolate the problem to a simple test case
-- Please include a demonstration of the bug on a website such as [JS Bin](https://jsbin.com/), [JS Fiddle](https://jsfiddle.net/), or [Codepen](https://codepe... | true |
Other | chartjs | Chart.js | da0764a585db495c18f2f450f8b3cb32a68b374e.json | Fix casing of dist files in docs (#7670) | docs/docs/developers/index.md | @@ -8,26 +8,27 @@ Developer features allow extending and enhancing Chart.js in many different ways
Latest documentation and samples, including unreleased features, are available at:
- - https://www.chartjs.org/docs/master/
- - https://www.chartjs.org/samples/master/
+- https://www.chartjs.org/docs/master/
+- https... | true |
Other | chartjs | Chart.js | bdef29ebb10b2d8d7f2689ee5038433a01f8b8a2.json | Fix import statement in docs (#7653) | docs/docs/getting-started/integration.md | @@ -25,7 +25,7 @@ var myChart = new Chart(ctx, {...});
Chart.js 3 is tree-shakeable, so it is necessary to import and register the controllers, elements, scales and plugins you are going to use.
```javascript
-import Chart, LineController, Line, Point, LinearScale, CategoryScale, Title, Tooltip, Filler, Legend from... | true |
Other | chartjs | Chart.js | bdef29ebb10b2d8d7f2689ee5038433a01f8b8a2.json | Fix import statement in docs (#7653) | docs/docs/getting-started/v3-migration.md | @@ -24,7 +24,7 @@ Chart.js 3.0 introduces a number of breaking changes. Chart.js 2.0 was released
* Chart.js 3 is tree-shakeable. So if you are using it as an `npm` module in a project, you need to import and register the controllers, elements, scales and plugins you want to use. You will not have to call `register` i... | true |
Other | chartjs | Chart.js | 843829f16c5d8bde57c4ae7cf60a43a68d0c0b95.json | Fix tooltip in financial sample (#7638) | samples/scales/financial.html | @@ -39,7 +39,7 @@
</select>
<button id="update">update</button>
<script>
- // Generate data between the stock market hours of 9:30am - 5pm.
+ // Generate data between the stock market hours of 9:30am - 4pm.
// This method is slow and unoptimized, but in real life we'd be fetching it from the server.
funct... | false |
Other | chartjs | Chart.js | 2564e708b55fe2f032c9e5ee4d00874baa089a9e.json | Determine unit automatically in test (#7637) | test/fixtures/scale.timeseries/financial-daily.js | @@ -34,9 +34,6 @@ module.exports = {
maxRotation: 0,
sampleSize: 100
},
- time: {
- unit: 'month'
- },
// manually set major ticks so that test passes in all time zones with moment adapter
afterBuildTicks: function(scale) {
const major = [0, 12, 24]; | false |
Other | chartjs | Chart.js | af855d7646eed442b049c87dcd3c150099203a66.json | Fix remaining issues in samples (#7625)
* Fix remaining issues in samples
* Update migration guide
* Use element instead
* Update tooltip.md | docs/docs/configuration/tooltip.md | @@ -197,7 +197,10 @@ The tooltip items passed to the tooltip callbacks implement the following interf
datasetIndex: number,
// Index of this data item in the dataset
- dataIndex: number
+ dataIndex: number,
+
+ // The chart element (point, arc, bar, etc.) for this tooltip item
+ element: Element... | true |
Other | chartjs | Chart.js | af855d7646eed442b049c87dcd3c150099203a66.json | Fix remaining issues in samples (#7625)
* Fix remaining issues in samples
* Update migration guide
* Use element instead
* Update tooltip.md | docs/docs/getting-started/v3-migration.md | @@ -342,7 +342,7 @@ The following properties and methods were removed:
* Legend `onClick`, `onHover`, and `onLeave` options now receive the legend as the 3rd argument in addition to implicitly via `this`
* Legend `onClick`, `onHover`, and `onLeave` options now receive a wrapped `event` as the first parameter. The pre... | true |
Other | chartjs | Chart.js | af855d7646eed442b049c87dcd3c150099203a66.json | Fix remaining issues in samples (#7625)
* Fix remaining issues in samples
* Update migration guide
* Use element instead
* Update tooltip.md | samples/animations/loop.html | @@ -62,17 +62,16 @@
}]
},
options: {
- animation: (context) => {
- if (context.active) {
- return {
- radius: {
- duration: 400,
- loop: true
- }
- };
+ animation: (context) => Object.assign({},
+ Chart.defaults.animation,
+ {
+ radius: {
+ d... | true |
Other | chartjs | Chart.js | af855d7646eed442b049c87dcd3c150099203a66.json | Fix remaining issues in samples (#7625)
* Fix remaining issues in samples
* Update migration guide
* Use element instead
* Update tooltip.md | samples/tooltips/custom-line.html | @@ -160,6 +160,7 @@
tooltips: {
enabled: false,
mode: 'index',
+ intersect: false,
position: 'nearest',
custom: customTooltips
} | true |
Other | chartjs | Chart.js | af855d7646eed442b049c87dcd3c150099203a66.json | Fix remaining issues in samples (#7625)
* Fix remaining issues in samples
* Update migration guide
* Use element instead
* Update tooltip.md | samples/tooltips/custom-points.html | @@ -59,14 +59,15 @@
if (tooltip.dataPoints.length > 0) {
tooltip.dataPoints.forEach(function(dataPoint) {
- var content = [dataPoint.label, dataPoint.value].join(': ');
+ var content = [dataPoint.label, dataPoint.formattedValue].join(': ');
var $tooltip = $('#tooltip-' + dataPoint.datasetIndex)... | true |
Other | chartjs | Chart.js | af855d7646eed442b049c87dcd3c150099203a66.json | Fix remaining issues in samples (#7625)
* Fix remaining issues in samples
* Update migration guide
* Use element instead
* Update tooltip.md | src/core/core.animation.js | @@ -50,6 +50,7 @@ export default class Animation {
const remain = me._duration - elapsed;
me._start = date;
me._duration = Math.floor(Math.max(remain, cfg.duration));
+ me._loop = !!cfg.loop;
me._to = resolve([cfg.to, to, currentValue, cfg.from]);
me._from = resolve([cfg.from, currentValue, to]);
... | true |
Other | chartjs | Chart.js | af855d7646eed442b049c87dcd3c150099203a66.json | Fix remaining issues in samples (#7625)
* Fix remaining issues in samples
* Update migration guide
* Use element instead
* Update tooltip.md | src/plugins/plugin.tooltip.js | @@ -112,23 +112,23 @@ function splitNewlines(str) {
/**
* Private helper to create a tooltip item model
- * @param item - the chart element (point, arc, bar) to create the tooltip item for
+ * @param item - {element, index, datasetIndex} to create the tooltip item for
* @return new tooltip item
*/
function cr... | true |
Other | laravel | framework | f06af0cdac95815fc1d707c0762639aebf52a165.json | run facade script | src/Illuminate/Support/Facades/Auth.php | @@ -56,6 +56,7 @@
* @method static \Illuminate\Auth\SessionGuard setRequest(\Symfony\Component\HttpFoundation\Request $request)
* @method static \Illuminate\Support\Timebox getTimebox()
* @method static \Illuminate\Contracts\Auth\Authenticatable authenticate()
+ * @method static \Illuminate\Auth\SessionGuard forg... | false |
Other | laravel | framework | 28d07f051131deb23b6b0c2d1c3a24d6417941b1.json | Add sort option for schedule:list (#45198)
* Add sort option for schedule:list
Currently, in order to see what's schedule will be run, I need to run schedule:list and eyeball the list to find the relevant ones.
This PR adds an option to sort the list by the next due date.
Before:
```
php artisan schedule:list... | src/Illuminate/Console/Scheduling/ScheduleListCommand.php | @@ -21,7 +21,10 @@ class ScheduleListCommand extends Command
*
* @var string
*/
- protected $signature = 'schedule:list {--timezone= : The timezone that times should be displayed in}';
+ protected $signature = 'schedule:list
+ {--timezone= : The timezone that times should be displayed in}... | true |
Other | laravel | framework | 28d07f051131deb23b6b0c2d1c3a24d6417941b1.json | Add sort option for schedule:list (#45198)
* Add sort option for schedule:list
Currently, in order to see what's schedule will be run, I need to run schedule:list and eyeball the list to find the relevant ones.
This PR adds an option to sort the list by the next due date.
Before:
```
php artisan schedule:list... | tests/Integration/Console/Scheduling/ScheduleListCommandTest.php | @@ -52,6 +52,30 @@ public function testDisplaySchedule()
->expectsOutput(' * * * * * Closure at: '.$closureFilePath.':'.$closureLineNumber.' Next Due: 1 minute from now');
}
+ public function testDisplayScheduleWithSort()
+ {
+ $this->schedule->command(FooCommand::class)->qu... | true |
Other | laravel | framework | fbd39d9ec0f045262874488865e03a9d3c593fd5.json | Apply fixes from StyleCI | src/Illuminate/Routing/AbstractRouteCollection.php | @@ -136,6 +136,7 @@ protected function requestMethodNotAllowed($request, array $others, $method)
* @param array $others
* @param string $method
* @return void
+ *
* @deprecated use requestMethodNotAllowed
*
* @throws \Symfony\Component\HttpKernel\Exception\MethodNotAllowedHtt... | false |
Other | laravel | framework | 8ec69f85f90433d15c1afbbd7329700fe601635e.json | Add missing docblock | src/Illuminate/Support/Facades/Bus.php | @@ -43,6 +43,7 @@ class Bus extends Facade
* Replace the bound instance with a fake.
*
* @param array|string $jobsToFake
+ * @param \Illuminate\Bus\BatchRepository|null $batchRepository
* @return \Illuminate\Support\Testing\Fakes\BusFake
*/
public static function fake($jobsToF... | false |
Other | laravel | framework | 73685ff12821f7491c506bc78e91b0c917dfa75a.json | Add forgetUser() method to GuardHelpers | src/Illuminate/Auth/GuardHelpers.php | @@ -95,6 +95,16 @@ public function setUser(AuthenticatableContract $user)
return $this;
}
+ /**
+ * Forget the user.
+ *
+ * @return void
+ */
+ public function forgetUser()
+ {
+ $this->user = null;
+ }
+
/**
* Get the user provider used by the guard.
... | true |
Other | laravel | framework | 73685ff12821f7491c506bc78e91b0c917dfa75a.json | Add forgetUser() method to GuardHelpers | src/Illuminate/Support/Facades/Auth.php | @@ -56,6 +56,7 @@
* @method static \Illuminate\Auth\SessionGuard setRequest(\Symfony\Component\HttpFoundation\Request $request)
* @method static \Illuminate\Support\Timebox getTimebox()
* @method static \Illuminate\Contracts\Auth\Authenticatable authenticate()
+ * @method static void forgetUser()
* @method stat... | true |
Other | laravel | framework | 73685ff12821f7491c506bc78e91b0c917dfa75a.json | Add forgetUser() method to GuardHelpers | tests/Auth/AuthGuardTest.php | @@ -588,6 +588,14 @@ public function testLoginOnceFailure()
$this->assertFalse($guard->once(['foo']));
}
+ public function testForgetUserSetsUserToNull()
+ {
+ $user = m::mock(Authenticatable::class);
+ $guard = $this->getGuard()->setUser($user);
+ $guard->forgetUser();
+ ... | true |
Other | laravel | framework | 2407c9b86cda499eb2eedb9d19510cb4554fae1c.json | Allow BusFake to use custom BusRepository | src/Illuminate/Support/Facades/Bus.php | @@ -2,6 +2,7 @@
namespace Illuminate\Support\Facades;
+use Illuminate\Bus\BatchRepository;
use Illuminate\Contracts\Bus\Dispatcher as BusDispatcherContract;
use Illuminate\Foundation\Bus\PendingChain;
use Illuminate\Support\Testing\Fakes\BusFake;
@@ -44,9 +45,9 @@ class Bus extends Facade
* @param array|... | true |
Other | laravel | framework | 2407c9b86cda499eb2eedb9d19510cb4554fae1c.json | Allow BusFake to use custom BusRepository | src/Illuminate/Support/Testing/Fakes/BusFake.php | @@ -3,6 +3,7 @@
namespace Illuminate\Support\Testing\Fakes;
use Closure;
+use Illuminate\Bus\BatchRepository;
use Illuminate\Bus\PendingBatch;
use Illuminate\Contracts\Bus\QueueingDispatcher;
use Illuminate\Support\Arr;
@@ -75,13 +76,14 @@ class BusFake implements QueueingDispatcher
*
* @param \Illu... | true |
Other | laravel | framework | 2407c9b86cda499eb2eedb9d19510cb4554fae1c.json | Allow BusFake to use custom BusRepository | tests/Support/SupportTestingBusFakeTest.php | @@ -5,6 +5,7 @@
use Illuminate\Bus\Batch;
use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Bus\QueueingDispatcher;
+use Illuminate\Support\Testing\Fakes\BatchRepositoryFake;
use Illuminate\Support\Testing\Fakes\BusFake;
use Mockery as m;
use PHPUnit\Framework\Constraint\ExceptionMessage;
@@ -28,6 +29,20 @@ ... | true |
Other | laravel | framework | 68a9ff343125412dadddb7bf35f88ab42b90f1a9.json | Update InteractsWithQueue::$job PHPDoc (#45195)
InteractsWithQueue::$job is a nullable property | src/Illuminate/Queue/InteractsWithQueue.php | @@ -9,7 +9,7 @@ trait InteractsWithQueue
/**
* The underlying queue job instance.
*
- * @var \Illuminate\Contracts\Queue\Job
+ * @var \Illuminate\Contracts\Queue\Job|null
*/
public $job;
| false |
Other | laravel | framework | fe3d1bff07215c4ca79a0ae202d15ba22f17318d.json | Update HandleExceptions::$reservedMemory (#45199)
HandleExceptions::$reservedMemory is a nullable property | src/Illuminate/Foundation/Bootstrap/HandleExceptions.php | @@ -17,7 +17,7 @@ class HandleExceptions
/**
* Reserved memory so that errors can be displayed properly on memory exhaustion.
*
- * @var string
+ * @var string|null
*/
public static $reservedMemory;
| false |
Other | laravel | framework | c32c4fb35f3e1cd75ff2ad1630754712a7e0c6f3.json | add missing reserved names (#45149) | src/Illuminate/Console/GeneratorCommand.php | @@ -60,6 +60,7 @@ abstract class GeneratorCommand extends Command
'eval',
'exit',
'extends',
+ 'false',
'final',
'finally',
'fn',
@@ -93,6 +94,7 @@ abstract class GeneratorCommand extends Command
'switch',
'throw',
'trait',
+ ... | false |
Other | laravel | framework | 5b2a3793bea91c07369cdba457695ddf9ac54ad3.json | Fix separator for Windows OS | tests/Console/Scheduling/EventTest.php | @@ -101,7 +101,7 @@ public function testCustomMutexName()
$event = new Event(m::mock(EventMutex::class), 'php -i');
$event->description('Fancy command description');
- $this->assertSame('framework/schedule-eeb46c93d45e928d62aaf684d727e213b7094822', $event->mutexName());
+ $this->assert... | false |
Other | laravel | framework | cfc3433880a6cea6bcb93251e63ff101979456c3.json | Apply fixes from StyleCI | src/Illuminate/Queue/Events/WorkerStopping.php | @@ -2,8 +2,6 @@
namespace Illuminate\Queue\Events;
-use Illuminate\Queue\WorkerOptions;
-
class WorkerStopping
{
/** | false |
Other | laravel | framework | b150ec691074e99a23506e4c9a3c5d6e1792e5a8.json | Add missing space | src/Illuminate/Console/Scheduling/Event.php | @@ -954,7 +954,7 @@ public function mutexName()
/**
* Set the mutex name resolver callback.
*
- * @param \Closure $callback
+ * @param \Closure $callback
* @return $this
*/
public function createMutexNameUsing(Closure $callback) | false |
Other | laravel | framework | 437e1f0668f94000f2c7ce0abcf774f00c30ce9d.json | Remove unused variable (#45096)
* Remove
* fix | src/Illuminate/Console/Scheduling/ScheduleWorkCommand.php | @@ -44,7 +44,7 @@ public function handle()
{
$this->components->info('Running schedule tasks every minute.');
- [$lastExecutionStartedAt, $keyOfLastExecutionWithOutput, $executions] = [null, null, []];
+ [$lastExecutionStartedAt, $executions] = [null, []];
while (true) {
... | false |
Other | laravel | framework | 44ae14d12d4b6ee719b9a1f40d30cd174af62041.json | fix space (#45104) | src/Illuminate/Foundation/Http/Middleware/HandlePrecognitiveRequests.php | @@ -12,7 +12,7 @@
class HandlePrecognitiveRequests
{
/**
- *The container instance.
+ * The container instance.
*
* @var \Illuminate\Container\Container
*/ | false |
Other | laravel | framework | e19dbdbd840cc0accbb843a6cb1b781b425f2901.json | Add whenMissing() (#45019) | src/Illuminate/Http/Concerns/InteractsWithInput.php | @@ -224,6 +224,27 @@ public function missing($key)
return ! $this->has($keys);
}
+ /**
+ * Apply the callback if the request is missing the given input item key.
+ *
+ * @param string $key
+ * @param callable $callback
+ * @param callable|null $default
+ * @return $this|... | true |
Other | laravel | framework | e19dbdbd840cc0accbb843a6cb1b781b425f2901.json | Add whenMissing() (#45019) | tests/Http/HttpRequestTest.php | @@ -452,6 +452,41 @@ public function testMissingMethod()
$this->assertFalse($request->missing('foo.baz'));
}
+ public function testWhenMissingMethod()
+ {
+ $request = Request::create('/', 'GET', ['bar' => null]);
+
+ $name = $age = $city = $foo = $bar = true;
+
+ $request->wh... | true |
Other | laravel | framework | a3cdcbf3561e69dd999108295d919fb37dfbbb45.json | Apply fixes from StyleCI | src/Illuminate/Validation/Rules/NotIn.php | @@ -6,7 +6,7 @@ class NotIn
{
/**
* The name of the rule.
- *
+ *
* @var string
*/
protected $rule = 'not_in'; | false |
Other | laravel | framework | 64f11a3412d37b00f2bdbc2d3dda1d35cb9fccb5.json | Apply fixes from StyleCI | src/Illuminate/Validation/Rules/In.php | @@ -6,7 +6,7 @@ class In
{
/**
* The name of the rule.
- *
+ *
* @var string
*/
protected $rule = 'in'; | false |
Other | laravel | framework | 7bade4f486e7b600cc9a5d527fcfd85ead1e17db.json | add fix method | src/Illuminate/Support/Lottery.php | @@ -201,6 +201,18 @@ public static function alwaysLose($callback = null)
static::determineResultNormally();
}
+ /**
+ * Set the sequence that will be used to determine lottery results.
+ *
+ * @param array $sequence
+ * @param callable|null $whenMissing
+ * @return void
+ ... | false |
Other | laravel | framework | 5df600fec62a9f32d633ca0c2e453eafd24d0757.json | Apply fixes from StyleCI | tests/Http/Middleware/TrimStringsTest.php | @@ -9,14 +9,14 @@
class TrimStringsTest extends TestCase
{
/**
- * Test no zero-width space character returns the same string
+ * Test no zero-width space character returns the same string.
*/
public function test_no_zero_width_space_character_returns_the_same_string()
{
$request... | false |
Other | laravel | framework | 937498ba1aa6f97d2c47d685435db9eca1460829.json | Apply fixes from StyleCI | src/Illuminate/Foundation/Console/ShowModelCommand.php | @@ -242,6 +242,7 @@ protected function getObservers($model)
// Format listeners Eloquent verb => Observer methods...
$extractVerb = function ($key) {
preg_match('/eloquent.([a-zA-Z]+)\: /', $key, $matches);
+
return $matches[1] ?? '?';
};
| false |
Other | laravel | framework | 01a1474aa2fad999902b606efaa214dd7d607178.json | Apply fixes from StyleCI | src/Illuminate/Foundation/Vite.php | @@ -576,7 +576,7 @@ public function reactRefresh()
}
$attributes = $this->parseAttributes([
- 'nonce' => $this->cspNonce()
+ 'nonce' => $this->cspNonce(),
]);
return new HtmlString( | false |
Other | laravel | framework | 9fed2b4a323d9fb74f37d735fadd8f058b0aa37f.json | Fix `InteractsWithContainer::withoutMix` (#44822)
* Fix InteractsWithContainer::withoutMix
Original `mix()` returns `HtmlString` instance, fake-mix should return the same in case if a developer uses `toHtml()` explicitly. E.g.:
```php
mix('asset.css')->toHtml()
```
* Update assertion to reflect new withoutM... | src/Illuminate/Foundation/Testing/Concerns/InteractsWithContainer.php | @@ -5,6 +5,7 @@
use Closure;
use Illuminate\Foundation\Mix;
use Illuminate\Foundation\Vite;
+use Illuminate\Support\HtmlString;
use Mockery;
trait InteractsWithContainer
@@ -186,7 +187,7 @@ protected function withoutMix()
}
$this->swap(Mix::class, function () {
- return '';
+ ... | true |
Other | laravel | framework | 9fed2b4a323d9fb74f37d735fadd8f058b0aa37f.json | Fix `InteractsWithContainer::withoutMix` (#44822)
* Fix InteractsWithContainer::withoutMix
Original `mix()` returns `HtmlString` instance, fake-mix should return the same in case if a developer uses `toHtml()` explicitly. E.g.:
```php
mix('asset.css')->toHtml()
```
* Update assertion to reflect new withoutM... | tests/Foundation/Testing/Concerns/InteractsWithContainerTest.php | @@ -49,7 +49,7 @@ public function testWithoutMixBindsEmptyHandlerAndReturnsInstance()
{
$instance = $this->withoutMix();
- $this->assertSame('', mix('path/to/asset.png'));
+ $this->assertSame('', (string) mix('path/to/asset.png'));
$this->assertSame($this, $instance);
}
| true |
Other | laravel | framework | c2a1fcf81a6a1791575c86e3c68ecf01e5efe077.json | Apply fixes from StyleCI | tests/Notifications/NotificationSendQueuedNotificationTest.php | @@ -56,7 +56,8 @@ public function testSerializationOfNormalNotifiable()
public function testNotificationCanSetMaxExceptions()
{
$notifiable = new NotifiableUser;
- $notification = new class {
+ $notification = new class
+ {
public $maxExceptions = 23;
};
| false |
Other | laravel | framework | 78104e0530c930a5585bbc5250d63502b115e207.json | add source file to Collection's dd function output | src/Illuminate/Foundation/Concerns/ResolvesDumpSource.php | @@ -56,12 +56,17 @@ public function resolveDumpSource()
$sourceKey = null;
foreach ($trace as $traceKey => $traceFile) {
- if (isset($traceFile['file']) && str_ends_with(
- $traceFile['file'],
- 'dump.php'
- )) {
+ if (! isset($traceFile... | false |
Other | laravel | framework | 9a1ac305d4aaac772f12243aad2c84f19d774081.json | Add touchQuietly convenience method (#44722) | src/Illuminate/Database/Eloquent/Concerns/HasTimestamps.php | @@ -43,6 +43,17 @@ public function touch($attribute = null)
return $this->save();
}
+ /**
+ * Update the model's update timestamp without raising any events.
+ *
+ * @param string|null $attribute
+ * @return bool
+ */
+ public function touchQuietly($attribute = null)
+ {
+... | false |
Other | laravel | framework | a299816674a5ef99092f6c2d9ed9973a77e4faa4.json | Move Observers below Relations in command output | src/Illuminate/Foundation/Console/ShowModelCommand.php | @@ -352,17 +352,6 @@ protected function displayCli($class, $database, $table, $attributes, $relations
$this->newLine();
- $this->components->twoColumnDetail('<fg=green;options=bold>Eloquent Observers</>');
-
- if ($observers->count()) {
- foreach ($observers as $observer) {
- ... | false |
Other | laravel | framework | 23195b44d9ffde5517f6562cb5b1d87b8c9c731d.json | Fix expectations for output assertions. 🧪 (#44723) | src/Illuminate/Testing/PendingCommand.php | @@ -419,6 +419,8 @@ private function createABufferedOutputMock()
foreach ($this->test->expectedOutputSubstrings as $i => $text) {
$mock->shouldReceive('doWrite')
+ ->atLeast()
+ ->times(0)
->withArgs(fn ($output) => str_contains($output, $text))
... | false |
Other | laravel | framework | 470f0dadb35e6f9e80c39ac9051ef6931909ae07.json | Apply fixes from StyleCI | src/Illuminate/Foundation/Vite.php | @@ -262,15 +262,15 @@ public function __invoke($entrypoints, $buildDirectory = null)
$chunk['src'],
$this->assetPath("{$buildDirectory}/{$chunk['file']}"),
$chunk,
- $manifest
+ $manifest,
]);
foreach ($chunk['i... | true |
Other | laravel | framework | 470f0dadb35e6f9e80c39ac9051ef6931909ae07.json | Apply fixes from StyleCI | tests/Http/Middleware/VitePreloadingTest.php | @@ -21,7 +21,8 @@ protected function tearDown(): void
public function testItDoesNotSetLinkTagWhenNoTagsHaveBeenPreloaded()
{
$app = new Container();
- $app->instance(Vite::class, new class extends Vite {
+ $app->instance(Vite::class, new class extends Vite
+ {
protec... | true |
Other | laravel | framework | fa6e2f025f61e813de537043f693ea02f661a3e4.json | Remove return types
Since we don't add return types like this right now, it's best to keep things consistent. | src/Illuminate/Filesystem/FilesystemAdapter.php | @@ -562,7 +562,7 @@ public function size($path)
*
* @throws UnableToProvideChecksum
*/
- public function checksum(string $path, array $options = []): string|false
+ public function checksum(string $path, array $options = [])
{
try {
return $this->driver->checksum($path... | false |
Other | laravel | framework | a45a89479af426e758e5e963457dc4d17dcea9a1.json | Apply fixes from StyleCI | tests/Integration/Database/EloquentPivotTest.php | @@ -46,14 +46,14 @@ public function testPivotConvenientHelperReturnExpectedResult()
$project->contributors()->attach($user);
$project->collaborators()->attach($user2);
- tap($project->contributors->first()->pivot, function ($pivot) use ($project, $user) {
+ tap($project->contributors->... | false |
Other | laravel | framework | fd3fe72e2ab0ad4c312696418fcc0e260311b664.json | Set phpredis to latest (#44667) | .github/workflows/tests.yml | @@ -52,7 +52,7 @@ jobs:
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, gd, redis-phpredis/phpredis@5.3.5, igbinary, msgpack, lzf, zstd, lz4, memcached, gmp
+ extensions: d... | false |
Other | laravel | framework | 3b26f7a1ef2f04a3c1dfd6454eed4385e2399152.json | Add event TransactionCommitting (#44608) | src/Illuminate/Database/Concerns/ManagesTransactions.php | @@ -43,6 +43,7 @@ public function transaction(Closure $callback, $attempts = 1)
try {
if ($this->transactions == 1) {
+ $this->fireConnectionEvent('committing');
$this->getPdo()->commit();
}
@@ -188,7 +189,8 @@ protected function... | true |
Other | laravel | framework | 3b26f7a1ef2f04a3c1dfd6454eed4385e2399152.json | Add event TransactionCommitting (#44608) | src/Illuminate/Database/Connection.php | @@ -13,6 +13,7 @@
use Illuminate\Database\Events\StatementPrepared;
use Illuminate\Database\Events\TransactionBeginning;
use Illuminate\Database\Events\TransactionCommitted;
+use Illuminate\Database\Events\TransactionCommitting;
use Illuminate\Database\Events\TransactionRolledBack;
use Illuminate\Database\Query\Bu... | true |
Other | laravel | framework | 3b26f7a1ef2f04a3c1dfd6454eed4385e2399152.json | Add event TransactionCommitting (#44608) | src/Illuminate/Database/Events/TransactionCommitting.php | @@ -0,0 +1,8 @@
+<?php
+
+namespace Illuminate\Database\Events;
+
+class TransactionCommitting extends ConnectionEvent
+{
+ //
+} | true |
Other | laravel | framework | 3b26f7a1ef2f04a3c1dfd6454eed4385e2399152.json | Add event TransactionCommitting (#44608) | tests/Database/DatabaseConnectionTest.php | @@ -10,6 +10,7 @@
use Illuminate\Database\Events\QueryExecuted;
use Illuminate\Database\Events\TransactionBeginning;
use Illuminate\Database\Events\TransactionCommitted;
+use Illuminate\Database\Events\TransactionCommitting;
use Illuminate\Database\Events\TransactionRolledBack;
use Illuminate\Database\MultipleColu... | true |
Other | laravel | framework | faf384276ee437c556eabc1fed4c6262ce8103d2.json | fix mail tags silently failing (#44550) | src/Illuminate/View/Compilers/ComponentTagCompiler.php | @@ -236,8 +236,12 @@ protected function componentString(string $component, array $attributes)
// component and pass the component as a view parameter to the data so it
// can be accessed within the component and we can render out the view.
if (! class_exists($class)) {
+ $view = St... | false |
Other | laravel | framework | c703de37d6eee632a3eb661c2866566fda80388e.json | add TestResponse::assertContent() (#44580) | src/Illuminate/Testing/TestResponse.php | @@ -514,6 +514,19 @@ public function getCookie($cookieName, $decrypt = true, $unserialize = false)
}
}
+ /**
+ * Assert that the given string matches the response content.
+ *
+ * @param string $value
+ * @return $this
+ */
+ public function assertContent($value)
+ {
+ ... | true |
Other | laravel | framework | c703de37d6eee632a3eb661c2866566fda80388e.json | add TestResponse::assertContent() (#44580) | tests/Testing/TestResponseTest.php | @@ -211,6 +211,29 @@ public function testAssertViewMissingNested()
$response->assertViewMissing('foo.baz');
}
+ public function testAssertContent()
+ {
+ $response = $this->makeMockResponse([
+ 'render' => 'expected response data',
+ ]);
+
+ $response->assertContent... | true |
Other | laravel | framework | a1611c76ffd9221978378f361af00fac2fe0b4aa.json | Apply fixes from StyleCI | tests/Mail/MailMailableTest.php | @@ -991,7 +991,6 @@ public function build()
public function testAssertHasSubject()
{
-
}
}
| false |
Other | laravel | framework | 4bc8737955c01a7e04b0fd47e84cd16ac42acba3.json | add mailable assertions (#44563)
* add mailable assertions
* formatting
* formatting
* formatting
Co-authored-by: Taylor Otwell <taylor@laravel.com> | src/Illuminate/Mail/Mailable.php | @@ -1147,6 +1147,149 @@ public function hasMetadata($key, $value)
(method_exists($this, 'envelope') && $this->envelope()->hasMetadata($key, $value));
}
+ /**
+ * Assert that the mailable is from the given address.
+ *
+ * @param object|array|string $address
+ * @param string... | true |
Other | laravel | framework | 4bc8737955c01a7e04b0fd47e84cd16ac42acba3.json | add mailable assertions (#44563)
* add mailable assertions
* formatting
* formatting
* formatting
Co-authored-by: Taylor Otwell <taylor@laravel.com> | tests/Mail/MailMailableTest.php | @@ -26,36 +26,49 @@ public function testMailableSetsRecipientsCorrectly()
$mailable->to('taylor@laravel.com');
$this->assertEquals([['name' => null, 'address' => 'taylor@laravel.com']], $mailable->to);
$this->assertTrue($mailable->hasTo('taylor@laravel.com'));
+ $mailable->assertHasTo(... | true |
Other | laravel | framework | 7f71ec4b23f9e57baa0088ad16b78e7b33c1b34e.json | Add morphUsingUlids to Schema Facade (#44551) | src/Illuminate/Support/Facades/Schema.php | @@ -22,6 +22,7 @@
* @method static array getColumnListing(string $table)
* @method static string getColumnType(string $table, string $column)
* @method static void morphUsingUuids()
+ * @method static void morphUsingUlids()
* @method static \Illuminate\Database\Connection getConnection()
* @method static \Ill... | false |
Other | laravel | framework | 1066e3955bfd0a7877707786efbf4fda9d450502.json | Fix method name in shouldBeStrict method (#44520) | src/Illuminate/Database/Eloquent/Model.php | @@ -398,7 +398,7 @@ public static function shouldBeStrict(bool $shouldBeStrict = true)
static::preventLazyLoading();
static::preventSilentlyDiscardingAttributes();
- static::preventsAccessingMissingAttributes();
+ static::preventAccessingMissingAttributes();
}
/** | false |
Other | laravel | framework | ae9a17ea5192baea7dd2ec55167b1e8532f239d3.json | Apply fixes from StyleCI | tests/Support/SupportStringableTest.php | @@ -173,17 +173,17 @@ public function testWhenContainsAll()
return $stringable->studly();
}));
}
-
+
public function testDirname()
{
$this->assertSame('/framework/tests', (string) $this->stringable('/framework/tests/Support')->dirname());
$this->assertSame('/fr... | false |
Other | laravel | framework | b1d86bde040d418f995b6cf920c671275a979a89.json | Add dirname test (#44491) | tests/Support/SupportStringableTest.php | @@ -173,6 +173,20 @@ public function testWhenContainsAll()
return $stringable->studly();
}));
}
+
+ public function testDirname()
+ {
+ $this->assertSame('/framework/tests', (string) $this->stringable('/framework/tests/Support')->dirname());
+ $this->assertSame('/frame... | false |
Other | laravel | framework | b7d97686cf48bb518a997fed4f6ad4a3b5d83a98.json | Apply fixes from StyleCI | tests/Support/SupportStringableTest.php | @@ -948,16 +948,15 @@ public function testPadRight()
public function testExplode()
{
- $this->assertInstanceOf(Collection::class, $this->stringable("Foo Bar Baz")->explode(" "));
-
- $this->assertSame('["Foo","Bar","Baz"]', (string) $this->stringable("Foo Bar Baz")->explode(" "));
- ... | false |
Other | laravel | framework | 2e077822e304a1d6bc4cb7681a960dfdd2b71393.json | Add explode test (#44479) | tests/Support/SupportStringableTest.php | @@ -946,6 +946,18 @@ public function testPadRight()
$this->assertSame('❤MultiByte☆ ', (string) $this->stringable('❤MultiByte☆')->padRight(16));
}
+ public function testExplode()
+ {
+ $this->assertInstanceOf(Collection::class, $this->stringable("Foo Bar Baz")->explode(" "));
+
+... | false |
Other | laravel | framework | 758b805bb99c1ae275ab803346e50f766816d7dd.json | Add test for max and min validation rules (#44444) | tests/Validation/ValidationValidatorTest.php | @@ -2559,12 +2559,28 @@ public function testValidateMin()
$v = new Validator($trans, ['foo' => '3'], ['foo' => 'Min:3']);
$this->assertFalse($v->passes());
+ // an equal value qualifies.
+ $v = new Validator($trans, ['foo' => '3'], ['foo' => 'Numeric|Min:3']);
+ $this->assertTru... | false |
Other | laravel | framework | 7f0bc56e29e6e20cd91726e7bbcab65f050dabd4.json | add array type for callback (#44433) | src/Illuminate/Database/Eloquent/Concerns/HasEvents.php | @@ -147,7 +147,7 @@ public function removeObservableEvents($observables)
* Register a model event with the dispatcher.
*
* @param string $event
- * @param \Illuminate\Events\QueuedClosure|\Closure|string $callback
+ * @param \Illuminate\Events\QueuedClosure|\Closure|string|array $callbac... | false |
Other | laravel | framework | 5e5bad00d1fa3fb51666e44b77c593422660e85f.json | Fix DB::getPdo() docblock (#44403) | src/Illuminate/Support/Facades/DB.php | @@ -3,7 +3,7 @@
namespace Illuminate\Support\Facades;
/**
- * @method static \Doctrine\DBAL\Driver\PDOConnection getPdo()
+ * @method static \PDO getPdo()
* @method static \Illuminate\Database\ConnectionInterface connection(string $name = null)
* @method static \Illuminate\Database\Query\Builder table(string $t... | false |
Other | laravel | framework | 372deaf5b606969efea696cda733121b82fc9eac.json | remove double spaces (#44389)
super minor formatting | src/Illuminate/Routing/RouteRegistrar.php | @@ -22,10 +22,10 @@
* @method \Illuminate\Routing\RouteRegistrar middleware(array|string|null $middleware)
* @method \Illuminate\Routing\RouteRegistrar name(string $value)
* @method \Illuminate\Routing\RouteRegistrar namespace(string|null $value)
- * @method \Illuminate\Routing\RouteRegistrar prefix(string $pref... | true |
Other | laravel | framework | 372deaf5b606969efea696cda733121b82fc9eac.json | remove double spaces (#44389)
super minor formatting | src/Illuminate/Support/Facades/Broadcast.php | @@ -5,7 +5,7 @@
use Illuminate\Contracts\Broadcasting\Factory as BroadcastingFactoryContract;
/**
- * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channel(string $channel, callable|string $callback, array $options = [])
+ * @method static \Illuminate\Broadcasting\Broadcasters\Broadcaster channe... | true |
Other | laravel | framework | 372deaf5b606969efea696cda733121b82fc9eac.json | remove double spaces (#44389)
super minor formatting | src/Illuminate/Support/Facades/Cache.php | @@ -6,7 +6,7 @@
* @method static \Illuminate\Cache\TaggedCache tags(array|mixed $names)
* @method static \Illuminate\Contracts\Cache\Lock lock(string $name, int $seconds = 0, mixed $owner = null)
* @method static \Illuminate\Contracts\Cache\Lock restoreLock(string $name, string $owner)
- * @method static \Illumin... | true |
Other | laravel | framework | 1ce080b131b643b9c91bb5f7f1a245f4735879e8.json | use default cipher | src/Illuminate/Foundation/Console/EnvironmentDecryptCommand.php | @@ -78,7 +78,7 @@ public function handle()
return Command::FAILURE;
}
- $cipher = $this->option('cipher') ?: 'aes-128-cbc';
+ $cipher = $this->option('cipher') ?: 'AES-256-CBC';
$key = $this->parseKey($key);
| true |
Other | laravel | framework | 1ce080b131b643b9c91bb5f7f1a245f4735879e8.json | use default cipher | src/Illuminate/Foundation/Console/EnvironmentEncryptCommand.php | @@ -67,7 +67,7 @@ public function __construct(Filesystem $files)
*/
public function handle()
{
- $cipher = $this->option('cipher') ?: 'aes-128-cbc';
+ $cipher = $this->option('cipher') ?: 'AES-256-CBC';
$key = $this->option('key');
| true |
Other | laravel | framework | 278c6d7fd04be005c1175a7eaea868976177600c.json | Apply fixes from StyleCI | src/Illuminate/Support/Benchmark.php | @@ -3,7 +3,6 @@
namespace Illuminate\Support;
use Closure;
-use Illuminate\Support\Arr;
class Benchmark
{ | false |
Other | laravel | framework | b4293d7c18b08b363ac0af64ec04fb1d559b4698.json | add benchmark utility class | src/Illuminate/Support/Benchmark.php | @@ -0,0 +1,47 @@
+<?php
+
+namespace Illuminate\Support;
+
+use Closure;
+use Illuminate\Support\Arr;
+
+class Benchmark
+{
+ /**
+ * Measure a callable or array of callables over the given number of iterations.
+ *
+ * @param \Closure|array $benchmarkables
+ * @param int $iterations
+ * @ret... | false |
Other | laravel | framework | 66d37573dd6017dba1531c8ff9f294b1898351e6.json | Add methods to cast Stringables (#44238) | src/Illuminate/Support/Stringable.php | @@ -3,6 +3,7 @@
namespace Illuminate\Support;
use Closure;
+use Illuminate\Support\Facades\Date;
use Illuminate\Support\Traits\Conditionable;
use Illuminate\Support\Traits\Macroable;
use Illuminate\Support\Traits\Tappable;
@@ -1117,6 +1118,56 @@ public function toString()
return $this->value;
}
+... | true |
Other | laravel | framework | 66d37573dd6017dba1531c8ff9f294b1898351e6.json | Add methods to cast Stringables (#44238) | tests/Support/SupportStringableTest.php | @@ -2,6 +2,7 @@
namespace Illuminate\Tests\Support;
+use Illuminate\Support\Carbon;
use Illuminate\Support\Collection;
use Illuminate\Support\HtmlString;
use Illuminate\Support\Stringable;
@@ -1073,4 +1074,59 @@ public function testExactly()
$this->assertFalse($this->stringable('[]')->exactly([]));
... | true |
Other | laravel | framework | 618eeebeb6f78a2c19d567dc7e5e71732ef397ab.json | Add missing citext type mapping (#44237) | src/Illuminate/Database/Console/DatabaseInspectionCommand.php | @@ -24,6 +24,7 @@ abstract class DatabaseInspectionCommand extends Command
*/
protected $typeMappings = [
'bit' => 'string',
+ 'citext' => 'string',
'enum' => 'string',
'geometry' => 'string',
'geomcollection' => 'string', | false |
Other | laravel | framework | 89b316851eeba4c9e2ea19c87d928b96696f3259.json | Add support for ltree (#44220) | src/Illuminate/Database/Console/DatabaseInspectionCommand.php | @@ -28,6 +28,7 @@ abstract class DatabaseInspectionCommand extends Command
'geometry' => 'string',
'geomcollection' => 'string',
'linestring' => 'string',
+ 'ltree' => 'string',
'multilinestring' => 'string',
'multipoint' => 'string',
'multipolygon' => 'strin... | false |
Other | laravel | framework | b9b5c5caceebb4141ac39031d1f1ac6b47847dcd.json | make Vite macroable (#44198) | src/Illuminate/Foundation/Vite.php | @@ -7,9 +7,12 @@
use Illuminate\Support\Collection;
use Illuminate\Support\HtmlString;
use Illuminate\Support\Str;
+use Illuminate\Support\Traits\Macroable;
class Vite implements Htmlable
{
+ use Macroable;
+
/**
* The Content Security Policy nonce to apply to all generated tags.
* | true |
Other | laravel | framework | b9b5c5caceebb4141ac39031d1f1ac6b47847dcd.json | make Vite macroable (#44198) | tests/Foundation/FoundationViteTest.php | @@ -614,6 +614,25 @@ public function testViteCanOverrideHotFilePath()
$this->cleanViteHotFile('cold');
}
+ public function testViteIsMacroable()
+ {
+ $this->makeViteManifest([
+ 'resources/images/profile.png' => [
+ 'src' => 'resources/images/profile.png',
+ ... | true |
Other | laravel | framework | d98bdacba48ec6ea8aa730a73cff9581502d5038.json | Require symfony/uid (#44202) | composer.json | @@ -41,6 +41,7 @@
"symfony/mime": "^6.0",
"symfony/process": "^6.0",
"symfony/routing": "^6.0",
+ "symfony/uid": "^6.0",
"symfony/var-dumper": "^6.0",
"tijsverkoyen/css-to-inline-styles": "^2.2.2",
"vlucas/phpdotenv": "^5.4.1",
@@ -97,8 +98,7 @@
"php... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.