Skip to content

Commit

Permalink
Bump laravel/framework from 9.52.15 to 10.35.0 (#1867)
Browse files Browse the repository at this point in the history
Bumps [laravel/framework](https://github.com/laravel/framework) from
9.52.15 to 10.35.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/laravel/framework/releases">laravel/framework's
releases</a>.</em></p>
<blockquote>
<h2>v10.35.0</h2>
<ul>
<li>[10.x] Add <code>Conditionable</code> trait to
<code>AssertableJson</code> by <a
href="https://github.com/khalilst"><code>@​khalilst</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49172">laravel/framework#49172</a></li>
<li>[10.x] Add <code>--with-secret</code> option to Artisan
<code>down</code> command. by <a
href="https://github.com/jj15asmr"><code>@​jj15asmr</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49171">laravel/framework#49171</a></li>
<li>[10.x] Add support for <code>Number::summarize</code> by <a
href="https://github.com/jcsoriano"><code>@​jcsoriano</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49197">laravel/framework#49197</a></li>
<li>[10.x] Add Blade <a
href="https://github.com/use"><code>@​use</code></a> directive by <a
href="https://github.com/simonhamp"><code>@​simonhamp</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49179">laravel/framework#49179</a></li>
<li>[10.x] Fixes retrying failed jobs causes PHP memory exhaustion
errors when dealing with thousands of failed jobs by <a
href="https://github.com/crynobone"><code>@​crynobone</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49186">laravel/framework#49186</a></li>
<li>[10.x] Add &quot;substituteImplicitBindingsUsing&quot; method to
router by <a
href="https://github.com/calebporzio"><code>@​calebporzio</code></a> in
<a
href="https://redirect.github.com/laravel/framework/pull/49200">laravel/framework#49200</a></li>
<li>[10.x] Cookies Having Independent Partitioned State (CHIPS) by <a
href="https://github.com/fabricecw"><code>@​fabricecw</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/48745">laravel/framework#48745</a></li>
<li>[10.x] Update InteractsWithDictionary.php to use base
InvalidArgumentException by <a
href="https://github.com/Grldk"><code>@​Grldk</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49209">laravel/framework#49209</a></li>
<li>[10.x] Fix docblock for wasRecentlyCreated by <a
href="https://github.com/stancl"><code>@​stancl</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49208">laravel/framework#49208</a></li>
<li>[10.x] Fix loss of attributes after calling child component by <a
href="https://github.com/rojtjo"><code>@​rojtjo</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49216">laravel/framework#49216</a></li>
<li>[10.x] Fix typo in PHPDoc comment by <a
href="https://github.com/caendesilva"><code>@​caendesilva</code></a> in
<a
href="https://redirect.github.com/laravel/framework/pull/49234">laravel/framework#49234</a></li>
<li>[10.x] Determine if the given view exists. by <a
href="https://github.com/hafezdivandari"><code>@​hafezdivandari</code></a>
in <a
href="https://redirect.github.com/laravel/framework/pull/49231">laravel/framework#49231</a></li>
</ul>
<h2>v10.34.2</h2>
<ul>
<li>[v10.x] Add missing methods to newly extended fake <code>Vite</code>
instance by <a
href="https://github.com/stevebauman"><code>@​stevebauman</code></a> in
<a
href="https://redirect.github.com/laravel/framework/pull/49165">laravel/framework#49165</a></li>
</ul>
<h2>v10.34.1</h2>
<ul>
<li>[10.x] Streamline <code>DatabaseMigrations</code> and
<code>RefreshDatabase</code> events by <a
href="https://github.com/crynobone"><code>@​crynobone</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49153">laravel/framework#49153</a></li>
<li>[10.x] Use HtmlString in Vite fake by <a
href="https://github.com/jasonvarga"><code>@​jasonvarga</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49163">laravel/framework#49163</a></li>
</ul>
<h2>v10.34.0</h2>
<ul>
<li>[10.x] Fix <code>hex_color</code> validation rule by <a
href="https://github.com/apih"><code>@​apih</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49070">laravel/framework#49070</a></li>
<li>[10.x] Prevent passing null to base64_decode in Encrypter by <a
href="https://github.com/robtesch"><code>@​robtesch</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49071">laravel/framework#49071</a></li>
<li>[10.x] Alias Number class by <a
href="https://github.com/ziadoz"><code>@​ziadoz</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49073">laravel/framework#49073</a></li>
<li>[10.x] Added File Validation <code>extensions</code> by <a
href="https://github.com/eusonlito"><code>@​eusonlito</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49082">laravel/framework#49082</a></li>
<li>[10.x] Add <a
href="https://github.com/throws"><code>@​throws</code></a> in doc-blocks
by <a
href="https://github.com/imanghafoori1"><code>@​imanghafoori1</code></a>
in <a
href="https://redirect.github.com/laravel/framework/pull/49091">laravel/framework#49091</a></li>
<li>[10.x] Update docblocks for consistency by <a
href="https://github.com/dwightwatson"><code>@​dwightwatson</code></a>
in <a
href="https://redirect.github.com/laravel/framework/pull/49092">laravel/framework#49092</a></li>
<li>[10.x] Throw exception when trying to initiate
<code>Collection</code> using <code>WeakMap</code> by <a
href="https://github.com/crynobone"><code>@​crynobone</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49095">laravel/framework#49095</a></li>
<li>[10.x] Only stage committed transactions by <a
href="https://github.com/hansnn"><code>@​hansnn</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49093">laravel/framework#49093</a></li>
<li>Better transaction manager object design by <a
href="https://github.com/taylorotwell"><code>@​taylorotwell</code></a>
in <a
href="https://redirect.github.com/laravel/framework/pull/49103">laravel/framework#49103</a></li>
<li>[10.x] use php 8.3 <code>mb_str_pad()</code> for
<code>Str::pad*</code> by <a
href="https://github.com/amacado"><code>@​amacado</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49108">laravel/framework#49108</a></li>
<li>[10.x] Add Conditionable to TestResponse by <a
href="https://github.com/nshiro"><code>@​nshiro</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49112">laravel/framework#49112</a></li>
<li>[10.x] Allow multiple types in Collection's <code>ensure</code>
method by <a
href="https://github.com/ash-jc-allen"><code>@​ash-jc-allen</code></a>
in <a
href="https://redirect.github.com/laravel/framework/pull/49127">laravel/framework#49127</a></li>
<li>[10.x] Fix middleware &quot;SetCacheHeaders&quot; with download
responses by <a
href="https://github.com/clementbirkle"><code>@​clementbirkle</code></a>
in <a
href="https://redirect.github.com/laravel/framework/pull/49138">laravel/framework#49138</a></li>
<li>[10.x][Cache] Fix handling of <code>false</code> values in apc by <a
href="https://github.com/simivar"><code>@​simivar</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49145">laravel/framework#49145</a></li>
<li>[10.x] Reset numeric rules after each attribute's validation by <a
href="https://github.com/apih"><code>@​apih</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49142">laravel/framework#49142</a></li>
<li>[10.x] Extract dirty getter for <code>performUpdate</code> by <a
href="https://github.com/taka-oyama"><code>@​taka-oyama</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49141">laravel/framework#49141</a></li>
<li>[10.x] <code>ensure</code>: Resolve <code>$itemType</code> outside
the closure by <a
href="https://github.com/lucasmichot"><code>@​lucasmichot</code></a> in
<a
href="https://redirect.github.com/laravel/framework/pull/49137">laravel/framework#49137</a></li>
<li>Allow &quot;missing&quot; method to be used on route groups by <a
href="https://github.com/redelschaap"><code>@​redelschaap</code></a> in
<a
href="https://redirect.github.com/laravel/framework/pull/49144">laravel/framework#49144</a></li>
<li>[10.x] Get tables and views info by <a
href="https://github.com/hafezdivandari"><code>@​hafezdivandari</code></a>
in <a
href="https://redirect.github.com/laravel/framework/pull/49020">laravel/framework#49020</a></li>
<li>[10.x] Fix <code>MorphTo::associate()</code> PHPDoc parameter by <a
href="https://github.com/devfrey"><code>@​devfrey</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49162">laravel/framework#49162</a></li>
<li>[10.x] Make test error messages more multi-byte readable by <a
href="https://github.com/nshiro"><code>@​nshiro</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49160">laravel/framework#49160</a></li>
<li>[10.x] Generate a unique hash for anonymous components by <a
href="https://github.com/billyonecan"><code>@​billyonecan</code></a> in
<a
href="https://redirect.github.com/laravel/framework/pull/49156">laravel/framework#49156</a></li>
<li>[10.x] Improves output when using <code>php artisan about
--json</code> by <a
href="https://github.com/crynobone"><code>@​crynobone</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49154">laravel/framework#49154</a></li>
<li>[10.x] Make fake instance inherit from <code>Vite</code> when using
<code>withoutVite()</code> by <a
href="https://github.com/orkhanahmadov"><code>@​orkhanahmadov</code></a>
in <a
href="https://redirect.github.com/laravel/framework/pull/49150">laravel/framework#49150</a></li>
</ul>
<h2>v10.33.0</h2>
<ul>
<li>[10.x] Fix wrong parameter passing and add these rules to dependent
rules by <a
href="https://github.com/kayw-geek"><code>@​kayw-geek</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49008">laravel/framework#49008</a></li>
<li>[10.x] Make Validator::getValue() public by <a
href="https://github.com/shinsenter"><code>@​shinsenter</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49007">laravel/framework#49007</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/laravel/framework/blob/10.x/CHANGELOG.md">laravel/framework's
changelog</a>.</em></p>
<blockquote>
<h2><a
href="https://github.com/laravel/framework/compare/v10.34.2...v10.35.0">v10.35.0</a>
- 2023-12-05</h2>
<ul>
<li>[10.x] Add <code>Conditionable</code> trait to
<code>AssertableJson</code> by <a
href="https://github.com/khalilst"><code>@​khalilst</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49172">laravel/framework#49172</a></li>
<li>[10.x] Add <code>--with-secret</code> option to Artisan
<code>down</code> command. by <a
href="https://github.com/jj15asmr"><code>@​jj15asmr</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49171">laravel/framework#49171</a></li>
<li>[10.x] Add support for <code>Number::summarize</code> by <a
href="https://github.com/jcsoriano"><code>@​jcsoriano</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49197">laravel/framework#49197</a></li>
<li>[10.x] Add Blade <a
href="https://github.com/use"><code>@​use</code></a> directive by <a
href="https://github.com/simonhamp"><code>@​simonhamp</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49179">laravel/framework#49179</a></li>
<li>[10.x] Fixes retrying failed jobs causes PHP memory exhaustion
errors when dealing with thousands of failed jobs by <a
href="https://github.com/crynobone"><code>@​crynobone</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49186">laravel/framework#49186</a></li>
<li>[10.x] Add &quot;substituteImplicitBindingsUsing&quot; method to
router by <a
href="https://github.com/calebporzio"><code>@​calebporzio</code></a> in
<a
href="https://redirect.github.com/laravel/framework/pull/49200">laravel/framework#49200</a></li>
<li>[10.x] Cookies Having Independent Partitioned State (CHIPS) by <a
href="https://github.com/fabricecw"><code>@​fabricecw</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/48745">laravel/framework#48745</a></li>
<li>[10.x] Update InteractsWithDictionary.php to use base
InvalidArgumentException by <a
href="https://github.com/Grldk"><code>@​Grldk</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49209">laravel/framework#49209</a></li>
<li>[10.x] Fix docblock for wasRecentlyCreated by <a
href="https://github.com/stancl"><code>@​stancl</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49208">laravel/framework#49208</a></li>
<li>[10.x] Fix loss of attributes after calling child component by <a
href="https://github.com/rojtjo"><code>@​rojtjo</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49216">laravel/framework#49216</a></li>
<li>[10.x] Fix typo in PHPDoc comment by <a
href="https://github.com/caendesilva"><code>@​caendesilva</code></a> in
<a
href="https://redirect.github.com/laravel/framework/pull/49234">laravel/framework#49234</a></li>
<li>[10.x] Determine if the given view exists. by <a
href="https://github.com/hafezdivandari"><code>@​hafezdivandari</code></a>
in <a
href="https://redirect.github.com/laravel/framework/pull/49231">laravel/framework#49231</a></li>
</ul>
<h2><a
href="https://github.com/laravel/framework/compare/v10.34.1...v10.34.2">v10.34.2</a>
- 2023-11-28</h2>
<ul>
<li>[v10.x] Add missing methods to newly extended fake <code>Vite</code>
instance by <a
href="https://github.com/stevebauman"><code>@​stevebauman</code></a> in
<a
href="https://redirect.github.com/laravel/framework/pull/49165">laravel/framework#49165</a></li>
</ul>
<h2><a
href="https://github.com/laravel/framework/compare/v10.34.0...v10.34.1">v10.34.1</a>
- 2023-11-28</h2>
<ul>
<li>[10.x] Streamline <code>DatabaseMigrations</code> and
<code>RefreshDatabase</code> events by <a
href="https://github.com/crynobone"><code>@​crynobone</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49153">laravel/framework#49153</a></li>
<li>[10.x] Use HtmlString in Vite fake by <a
href="https://github.com/jasonvarga"><code>@​jasonvarga</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49163">laravel/framework#49163</a></li>
</ul>
<h2><a
href="https://github.com/laravel/framework/compare/v10.33.0...v10.34.0">v10.34.0</a>
- 2023-11-28</h2>
<ul>
<li>[10.x] Fix <code>hex_color</code> validation rule by <a
href="https://github.com/apih"><code>@​apih</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49070">laravel/framework#49070</a></li>
<li>[10.x] Prevent passing null to base64_decode in Encrypter by <a
href="https://github.com/robtesch"><code>@​robtesch</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49071">laravel/framework#49071</a></li>
<li>[10.x] Alias Number class by <a
href="https://github.com/ziadoz"><code>@​ziadoz</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49073">laravel/framework#49073</a></li>
<li>[10.x] Added File Validation <code>extensions</code> by <a
href="https://github.com/eusonlito"><code>@​eusonlito</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49082">laravel/framework#49082</a></li>
<li>[10.x] Add <a
href="https://github.com/throws"><code>@​throws</code></a> in doc-blocks
by <a
href="https://github.com/imanghafoori1"><code>@​imanghafoori1</code></a>
in <a
href="https://redirect.github.com/laravel/framework/pull/49091">laravel/framework#49091</a></li>
<li>[10.x] Update docblocks for consistency by <a
href="https://github.com/dwightwatson"><code>@​dwightwatson</code></a>
in <a
href="https://redirect.github.com/laravel/framework/pull/49092">laravel/framework#49092</a></li>
<li>[10.x] Throw exception when trying to initiate
<code>Collection</code> using <code>WeakMap</code> by <a
href="https://github.com/crynobone"><code>@​crynobone</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49095">laravel/framework#49095</a></li>
<li>[10.x] Only stage committed transactions by <a
href="https://github.com/hansnn"><code>@​hansnn</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49093">laravel/framework#49093</a></li>
<li>Better transaction manager object design by <a
href="https://github.com/taylorotwell"><code>@​taylorotwell</code></a>
in <a
href="https://redirect.github.com/laravel/framework/pull/49103">laravel/framework#49103</a></li>
<li>[10.x] use php 8.3 <code>mb_str_pad()</code> for
<code>Str::pad*</code> by <a
href="https://github.com/amacado"><code>@​amacado</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49108">laravel/framework#49108</a></li>
<li>[10.x] Add Conditionable to TestResponse by <a
href="https://github.com/nshiro"><code>@​nshiro</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49112">laravel/framework#49112</a></li>
<li>[10.x] Allow multiple types in Collection's <code>ensure</code>
method by <a
href="https://github.com/ash-jc-allen"><code>@​ash-jc-allen</code></a>
in <a
href="https://redirect.github.com/laravel/framework/pull/49127">laravel/framework#49127</a></li>
<li>[10.x] Fix middleware &quot;SetCacheHeaders&quot; with download
responses by <a
href="https://github.com/clementbirkle"><code>@​clementbirkle</code></a>
in <a
href="https://redirect.github.com/laravel/framework/pull/49138">laravel/framework#49138</a></li>
<li>[10.x][Cache] Fix handling of <code>false</code> values in apc by <a
href="https://github.com/simivar"><code>@​simivar</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49145">laravel/framework#49145</a></li>
<li>[10.x] Reset numeric rules after each attribute's validation by <a
href="https://github.com/apih"><code>@​apih</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49142">laravel/framework#49142</a></li>
<li>[10.x] Extract dirty getter for <code>performUpdate</code> by <a
href="https://github.com/taka-oyama"><code>@​taka-oyama</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49141">laravel/framework#49141</a></li>
<li>[10.x] <code>ensure</code>: Resolve <code>$itemType</code> outside
the closure by <a
href="https://github.com/lucasmichot"><code>@​lucasmichot</code></a> in
<a
href="https://redirect.github.com/laravel/framework/pull/49137">laravel/framework#49137</a></li>
<li>Allow &quot;missing&quot; method to be used on route groups by <a
href="https://github.com/redelschaap"><code>@​redelschaap</code></a> in
<a
href="https://redirect.github.com/laravel/framework/pull/49144">laravel/framework#49144</a></li>
<li>[10.x] Get tables and views info by <a
href="https://github.com/hafezdivandari"><code>@​hafezdivandari</code></a>
in <a
href="https://redirect.github.com/laravel/framework/pull/49020">laravel/framework#49020</a></li>
<li>[10.x] Fix <code>MorphTo::associate()</code> PHPDoc parameter by <a
href="https://github.com/devfrey"><code>@​devfrey</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49162">laravel/framework#49162</a></li>
<li>[10.x] Make test error messages more multi-byte readable by <a
href="https://github.com/nshiro"><code>@​nshiro</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49160">laravel/framework#49160</a></li>
<li>[10.x] Generate a unique hash for anonymous components by <a
href="https://github.com/billyonecan"><code>@​billyonecan</code></a> in
<a
href="https://redirect.github.com/laravel/framework/pull/49156">laravel/framework#49156</a></li>
<li>[10.x] Improves output when using <code>php artisan about
--json</code> by <a
href="https://github.com/crynobone"><code>@​crynobone</code></a> in <a
href="https://redirect.github.com/laravel/framework/pull/49154">laravel/framework#49154</a></li>
<li>[10.x] Make fake instance inherit from <code>Vite</code> when using
<code>withoutVite()</code> by <a
href="https://github.com/orkhanahmadov"><code>@​orkhanahmadov</code></a>
in <a
href="https://redirect.github.com/laravel/framework/pull/49150">laravel/framework#49150</a></li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/laravel/framework/commit/91ec2d92d2f6007e9084fe06438b99c91845da69"><code>91ec2d9</code></a>
version</li>
<li><a
href="https://github.com/laravel/framework/commit/5f00326061eeb7c1474096eaff4872d2b82a0dae"><code>5f00326</code></a>
Update CHANGELOG</li>
<li><a
href="https://github.com/laravel/framework/commit/8efb32342f0fa2aa0286b267f141afe9848dda50"><code>8efb323</code></a>
Update CHANGELOG</li>
<li><a
href="https://github.com/laravel/framework/commit/484e9c2c78637e3484681d7569a0e3f878dcd594"><code>484e9c2</code></a>
[10.x] Determine if the given view exists. (<a
href="https://redirect.github.com/laravel/framework/issues/49231">#49231</a>)</li>
<li><a
href="https://github.com/laravel/framework/commit/be526ee5d4ec4b38f62413f7b5b114377c657531"><code>be526ee</code></a>
Revert &quot;[10.x] <code>league/flysystem</code> 3.22.0 now prefer
inclusive mime-type inste...</li>
<li><a
href="https://github.com/laravel/framework/commit/0947618d8ca47fb87fbee534b0cfbae35c96e6d3"><code>0947618</code></a>
[10.x] <code>league/flysystem</code> 3.22.0 now prefer inclusive
mime-type instead of `n...</li>
<li><a
href="https://github.com/laravel/framework/commit/c59ef1f7bb9bfc916569e4492aedbb43a1c56501"><code>c59ef1f</code></a>
[10.x] Fix typo in PHPDoc comment (<a
href="https://redirect.github.com/laravel/framework/issues/49234">#49234</a>)</li>
<li><a
href="https://github.com/laravel/framework/commit/37cb3450150cf75af787dc9bcd8de08370024008"><code>37cb345</code></a>
[10.x] Fix loss of attributes after calling child component (<a
href="https://redirect.github.com/laravel/framework/issues/49216">#49216</a>)</li>
<li><a
href="https://github.com/laravel/framework/commit/a91c3f49f9c6df2c93586ada1a3e3eab8de8e55e"><code>a91c3f4</code></a>
fix docblock for wasRecentlyCreated (<a
href="https://redirect.github.com/laravel/framework/issues/49208">#49208</a>)</li>
<li><a
href="https://github.com/laravel/framework/commit/8b94c3e205a82e8e4d13b51a77053b6b661e3117"><code>8b94c3e</code></a>
Update InteractsWithDictionary.php to use base InvalidArgumentException
(<a
href="https://redirect.github.com/laravel/framework/issues/49209">#49209</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/laravel/framework/compare/v9.52.15...v10.35.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=laravel/framework&package-manager=composer&previous-version=9.52.15&new-version=10.35.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: William Allen <[email protected]>
  • Loading branch information
dependabot[bot] and williamjallen authored Dec 6, 2023
1 parent f761185 commit f96f3ea
Show file tree
Hide file tree
Showing 17 changed files with 331 additions and 206 deletions.
2 changes: 1 addition & 1 deletion app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function render($request, Throwable $exception)
/**
* @param $request
* @param AuthenticationException $exception
* @return \Symfony\Component\HttpFoundation\Response
* @return \Illuminate\Http\JsonResponse|\Illuminate\Http\RedirectResponse
*/
public function unauthenticated($request, AuthenticationException $exception)
{
Expand Down
17 changes: 13 additions & 4 deletions app/Utils/UnparsedSubmissionProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ private function checkDatabaseConnection(): bool
/** Write build metadata to disk in JSON format. */
private function serializeBuildMetadata(string $uuid): void
{
$build_metadata = [
$build_metadata = json_encode([
'projectname' => $this->projectname,
'buildname' => $this->buildname,
'buildstamp' => $this->buildstamp,
Expand All @@ -382,11 +382,16 @@ private function serializeBuildMetadata(string $uuid): void
'generator' => $this->generator,
'subprojectname' => $this->subprojectname,
'token' => $this->token,
];
]);

// This case exists only to satisfy PHPStan...
if ($build_metadata === false) {
abort(500);
}

$build_metadata_filename = "{$this->projectname}_-_{$this->token}_-_build-metadata_-_{$uuid}_-__-_.json";
$inbox_build_metadata_filename = "inbox/{$build_metadata_filename}";
Storage::put($inbox_build_metadata_filename, json_encode($build_metadata));
Storage::put($inbox_build_metadata_filename, $build_metadata);
}

/** Append data file parameters to the build metadata JSON file. */
Expand All @@ -411,7 +416,11 @@ private function serializeDataFileParameters(): void
$build_metadata['backupfilename'] = $this->backupfilename;
$build_metadata['inboxdatafilename'] = $this->inboxdatafilename;

Storage::put($inbox_filename, json_encode($build_metadata));
$build_metadata = json_encode($build_metadata);
if ($build_metadata === false) {
abort(500, 'Invalid JSON array.');
}
Storage::put($inbox_filename, $build_metadata);
}

/** Deserialize a build metadata JSON file. */
Expand Down
16 changes: 8 additions & 8 deletions app/cdash/tests/test_dynamicanalysisdefectlongtype.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require_once dirname(__FILE__) . '/cdash_test_case.php';

use CDash\Model\Project;
use Illuminate\Support\Facades\DB;

class DynamicAnalysisDefectLongTypeTestCase extends KWWebTestCase
{
Expand Down Expand Up @@ -39,14 +40,13 @@ public function testDynamicAnalysisDefectLongType()
}

// Verify type was properly recorded.
$results = \DB::select(
DB::raw("
SELECT dynamicanalysisdefect.type FROM dynamicanalysisdefect
JOIN dynamicanalysis ON (dynamicanalysisdefect.dynamicanalysisid = dynamicanalysis.id)
JOIN build on (dynamicanalysis.buildid = build.id)
WHERE build.projectid = :projectid"),
[':projectid' => $this->project->Id]
);
$results = DB::select("
SELECT dynamicanalysisdefect.type
FROM dynamicanalysisdefect
JOIN dynamicanalysis ON (dynamicanalysisdefect.dynamicanalysisid = dynamicanalysis.id)
JOIN build on (dynamicanalysis.buildid = build.id)
WHERE build.projectid = ?
", [(int) $this->project->Id]);
$this->assertTrue(1 === count($results));
$expected = "member call on address 0x7f9ce2a84da8 which does not point to an object of type 'error_category'";
$this->assertEqual($expected, $results[0]->type);
Expand Down
14 changes: 7 additions & 7 deletions app/cdash/tests/test_dynamicanalysislogs.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use CDash\Model\Project;
use CDash\Model\DynamicAnalysis;
use Illuminate\Support\Facades\DB;

class DynamicAnalysisLogsTestCase extends KWWebTestCase
{
Expand Down Expand Up @@ -43,13 +44,12 @@ public function testDynamicAnalysisLogs()
}

// Verify full log file was recorded.
$results = \DB::select(
DB::raw("
SELECT dynamicanalysis.id FROM dynamicanalysis
JOIN build on (dynamicanalysis.buildid = build.id)
WHERE build.projectid = :projectid"),
[':projectid' => $this->project->Id]
);
$results = DB::select("
SELECT dynamicanalysis.id
FROM dynamicanalysis
JOIN build on (dynamicanalysis.buildid = build.id)
WHERE build.projectid = ?
", [(int) $this->project->Id]);
$this->assertTrue(1 === count($results));
$id = $results[0]->id;
$DA = new DynamicAnalysis();
Expand Down
5 changes: 1 addition & 4 deletions app/cdash/tests/test_longbuildname.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,7 @@ public function testLongBuildName()
$this->assertTrue($this->checkLog($this->logfilename) !== false);

// The build exists.
$results = DB::select(
DB::raw("SELECT id FROM build WHERE projectid = :projectid"),
[':projectid' => $this->project->Id]
);
$results = DB::select("SELECT id FROM build WHERE projectid = ?", [(int) $this->project->Id]);
$this->assertTrue(1 === count($results));

// Its configure log was stored correctly.
Expand Down
12 changes: 4 additions & 8 deletions app/cdash/tests/test_lotsofsubprojects.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require_once dirname(__FILE__) . '/cdash_test_case.php';

use CDash\Model\Project;
use Illuminate\Support\Facades\DB;

class LotsOfSubProjectsTestCase extends KWWebTestCase
{
Expand All @@ -23,7 +24,7 @@ public function __destruct()
}

// Delete all the extra labels we created.
\DB::table('label')->where('text', 'LIKE', 'LotsOfSubprojects%')->delete();
DB::table('label')->where('text', 'LIKE', 'LotsOfSubprojects%')->delete();

// Delete generated XML file.
unlink('LotsOfSubprojects_Configure.xml');
Expand Down Expand Up @@ -61,16 +62,11 @@ public function testLotsOfSubProjects()
$this->assertTrue($this->checkLog($this->logfilename) !== false);

// Verify 101 builds (1 parent + 100 children).
$results = \DB::select(
DB::raw('SELECT id FROM build WHERE projectid = :projectid'),
[':projectid' => $this->project->Id]
);
$results = DB::select('SELECT id FROM build WHERE projectid = ?', [(int) $this->project->Id]);
$this->assertEqual(101, count($results));

// Verify 100 labels.
$results = \DB::select(
DB::raw("SELECT id FROM label WHERE text LIKE 'LotsOfSubprojects%'")
);
$results = DB::select("SELECT id FROM label WHERE text LIKE 'LotsOfSubprojects%'");
$this->assertEqual(100, count($results));
}
}
6 changes: 2 additions & 4 deletions app/cdash/tests/test_multiplelabelsfortests.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use App\Models\BuildTest;
use CDash\Model\Project;
use Illuminate\Support\Facades\DB;

class MultipleLabelsForTestsTestCase extends KWWebTestCase
{
Expand Down Expand Up @@ -47,10 +48,7 @@ public function testMultipleLabelsForTests()
$this->assertTrue($this->checkLog($this->logfilename) !== false);

// The build exists.
$results = \DB::select(
DB::raw("SELECT id FROM build WHERE projectid = :projectid"),
[':projectid' => $this->project->Id]
);
$results = DB::select("SELECT id FROM build WHERE projectid = ?", [(int) $this->project->Id]);
$this->assertTrue(1 === count($results));

// Verify that the test has multiple labels.
Expand Down
20 changes: 10 additions & 10 deletions app/cdash/tests/test_namedmeasurements.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require_once dirname(__FILE__) . '/cdash_test_case.php';

use CDash\Model\Project;
use Illuminate\Support\Facades\DB;

class NamedMeasurementsTestCase extends KWWebTestCase
{
Expand Down Expand Up @@ -42,16 +43,15 @@ public function testNamedMeasurements()
}

// Verify both measurements were inserted separately.
$results = \DB::select(
DB::raw("
SELECT testmeasurement.value FROM testmeasurement
JOIN testoutput ON (testmeasurement.outputid = testoutput.id)
JOIN build2test ON (testoutput.id = build2test.outputid)
JOIN build ON (build2test.buildid = build.id)
WHERE build.projectid = :projectid
AND testmeasurement.name = 'archive directory'"),
[':projectid' => $this->project->Id]
);
$results = DB::select("
SELECT testmeasurement.value
FROM testmeasurement
JOIN testoutput ON (testmeasurement.outputid = testoutput.id)
JOIN build2test ON (testoutput.id = build2test.outputid)
JOIN build ON (build2test.buildid = build.id)
WHERE build.projectid = :projectid
AND testmeasurement.name = 'archive directory'
", [(int) $this->project->Id]);

$this->assertTrue(2 === count($results));
$found_link1 = false;
Expand Down
10 changes: 5 additions & 5 deletions app/cdash/tests/test_outputcolor.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ public function testOutputColor()

private function getIdForTest($testname)
{
$buildtestid_results = DB::select(
DB::raw(
"SELECT build2test.id FROM build2test
$buildtestid_results = DB::select("
SELECT build2test.id
FROM build2test
JOIN test ON (build2test.testid = test.id)
WHERE test.name = '$testname'")
);
WHERE test.name = ?
", [$testname]);
$this->assertEqual(1, count($buildtestid_results));
return $buildtestid_results[0]->id;
}
Expand Down
6 changes: 2 additions & 4 deletions app/cdash/tests/test_querytestsfilterlabels.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require_once dirname(__FILE__) . '/cdash_test_case.php';

use CDash\Model\Project;
use Illuminate\Support\Facades\DB;

class QueryTestsFilterLabelsTestCase extends KWWebTestCase
{
Expand Down Expand Up @@ -46,10 +47,7 @@ public function testQueryTestsFilterLabels()
$this->assertTrue($this->checkLog($this->logfilename) !== false);

// Verify two builds.
$results = \DB::select(
DB::raw('SELECT id FROM build WHERE projectid = :projectid'),
[':projectid' => $this->project->Id]
);
$results = DB::select('SELECT id FROM build WHERE projectid = ?', [(int) $this->project->Id]);
$this->assertTrue(2 === count($results));

// Verify that queryTests.php only returns one test when filtering by label (not two).
Expand Down
11 changes: 3 additions & 8 deletions app/cdash/tests/test_redundanttests.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
require_once dirname(__FILE__) . '/cdash_test_case.php';

use CDash\Model\Project;
use Illuminate\Support\Facades\DB;

class RedundantTestsTestCase extends KWWebTestCase
{
Expand Down Expand Up @@ -60,18 +61,12 @@ public function testRedundantTests()
$this->assertTrue($this->checkLog($this->logfilename) !== false);

// Verify one build.
$results = \DB::select(
DB::raw('SELECT id FROM build WHERE projectid = :projectid'),
[':projectid' => $this->project->Id]
);
$results = DB::select('SELECT id FROM build WHERE projectid = ?', [(int) $this->project->Id]);
$this->assertTrue(1 === count($results));
$buildid = $results[0]->id;

// Verify two tests.
$results = \DB::select(
DB::raw('SELECT id FROM build2test WHERE buildid = :buildid'),
[':buildid' => $buildid]
);
$results = DB::select('SELECT id FROM build2test WHERE buildid = ?', [(int) $buildid]);
$this->assertTrue(2 === count($results));

// Verify expected output from 'test details' API.
Expand Down
21 changes: 9 additions & 12 deletions app/cdash/tests/test_starttimefromnotes.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

use CDash\Model\Build;
use CDash\Model\Project;
use Illuminate\Support\Facades\DB;

class StartTimeFromNotesTestCase extends KWWebTestCase
{
Expand Down Expand Up @@ -44,10 +45,7 @@ public function testStartTimeFromNotes()
$this->assertTrue($this->checkLog($this->logfilename) !== false);

// The build exists.
$results = \DB::select(
DB::raw('SELECT id FROM build WHERE projectid = :projectid'),
[':projectid' => $this->project->Id]
);
$results = DB::select('SELECT id FROM build WHERE projectid = ?', [(int) $this->project->Id]);
$this->assertTrue(1 === count($results));

// Verify start time & testing day.
Expand All @@ -58,14 +56,13 @@ public function testStartTimeFromNotes()
$this->assertEqual('2021-09-16 19:19:46', $build->StartTime);

// Verify note was stored successfully.
$results = \DB::select(
DB::raw("
SELECT note.name, note.text FROM note
JOIN build2note ON (note.id = build2note.noteid)
JOIN build ON (build.id = build2note.buildid)
WHERE build.id = :buildid"),
[':buildid' => $build->Id]
);
$results = DB::select('
SELECT note.name, note.text
FROM note
JOIN build2note ON (note.id = build2note.noteid)
JOIN build ON (build.id = build2note.buildid)
WHERE build.id = ?
', [(int) $build->Id]);
$this->assertTrue(1 === count($results));
$this->assertEqual("my very own note", $results[0]->name);
$this->assertEqual("this is\nmy note\n", $results[0]->text);
Expand Down
20 changes: 11 additions & 9 deletions app/cdash/tests/test_testhistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@


use CDash\Model\Project;
use Illuminate\Support\Facades\DB;

class TestHistoryTestCase extends KWWebTestCase
{
Expand Down Expand Up @@ -215,14 +216,15 @@ public function testTestHistory()
$this->assertTrue($this->checkLog($this->logfilename) !== false);

// Get the IDs for the five builds that we just created.
$builds = \DB::select(
DB::raw(
"SELECT b.id AS buildid, b2g.groupid
$builds = DB::select("
SELECT
b.id AS buildid,
b2g.groupid
FROM build b
JOIN build2group b2g ON (b2g.buildid = b.id)
WHERE name='TestHistory'
ORDER BY b.starttime")
);
ORDER BY b.starttime
");
$this->assertEqual(5, count($builds));
$groupid = $builds[0]->groupid;
$buildids = [];
Expand Down Expand Up @@ -280,7 +282,7 @@ public function testTestHistory()
}

// Verify test graphs for our 'flaky' test.
$test_result = \DB::select(
$test_result = DB::select(
"SELECT id FROM test WHERE name = 'flaky' AND projectid = {$this->project->Id}");
$testid = $test_result[0]->id;

Expand All @@ -307,7 +309,7 @@ public function testTestHistory()
// status graph
$flaky_ids = [];
foreach (range(0, 4) as $i) {
$flaky_ids[] = \DB::table('build2test')
$flaky_ids[] = DB::table('build2test')
->where('buildid', '=', $buildids[$i])
->where('testid', '=', $testid)
->value('id');
Expand All @@ -332,12 +334,12 @@ public function testTestHistory()
$this->assertEqual($flaky_ids[4], $jsonobj[1]['data'][2]['buildtestid']);

// Verify next/previous/current for our sporadic test.
$test_result = \DB::select(
$test_result = DB::select(
"SELECT id FROM test WHERE name = 'sporadic' AND projectid = {$this->project->Id}");
$testid = $test_result[0]->id;
$sporadic_ids = [];
foreach (range(0, 4, 2) as $i) {
$sporadic_ids[] = \DB::table('build2test')
$sporadic_ids[] = DB::table('build2test')
->where('buildid', '=', $buildids[$i])
->where('testid', '=', $testid)
->value('id');
Expand Down
Loading

0 comments on commit f96f3ea

Please sign in to comment.