Livewire v4.3.5: SFC Detection Bug Fix | Mohamed Said       [Skip to content](#main)  [ ![](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png) Mohamed SaidLaravel Backend Engineer ](https://www.msaied.com/public) - [Home](https://www.msaied.com/public)
- [Projects](https://www.msaied.com/public/projects)
- [Articles](https://www.msaied.com/public/articles)
- [Certificates](https://www.msaied.com/public/certificates)
- [About](https://www.msaied.com/public#about)

           [  Contact](https://www.msaied.com/public#contact) Menu 

Menu
----

Close 

 - [HomeStart here](https://www.msaied.com/public)
- [ProjectsCase studies](https://www.msaied.com/public/projects)
- [ArticlesEngineering notes](https://www.msaied.com/public/articles)
- [CertificatesCredentials](https://www.msaied.com/public/certificates)
- [AboutHow I work](https://www.msaied.com/public#about)
- [ContactGet in touch](https://www.msaied.com/public#contact)

  [Start a conversation](https://www.msaied.com/public#contact) [WhatsApp](https://wa.me/201094619204) [Email](mailto:hello@msaied.com) 

 1. [Home](https://www.msaied.com/public)
2. /
3. [Articles](https://www.msaied.com/public/articles)
4. /
5. [Livewire](https://www.msaied.com/public/articles?category=livewire)
6. /
7. Livewire v4.3.5 Released: Fix for SFC Detection with PHP Attribute Array Arguments

   [Livewire](https://www.msaied.com/public/articles?category=livewire) 

 Livewire v4.3.5 Released: Fix for SFC Detection with PHP Attribute Array Arguments
===================================================================================

 Livewire v4.3.5 ships a targeted bug fix for Single File Component (SFC) detection when PHP attributes contain array arguments, resolving a parsing edge case introduced in the v4.x line.

 ![](https://cdn.msaied.com/01M22N44A70A5MC2S599JP0MPH.webp) [Mohamed Said](https://www.msaied.com/public#person) Published 3 Aug 2026 · Updated 4 Aug 2026 · 3 min read

ShareCopy linkCopied

 ![Livewire v4.3.5 Released: Fix for SFC Detection with PHP Attribute Array Arguments](https://cdn.msaied.com/508/9678ed8dbf5d7a6f4f19ca7694cf241b.png) 

  On this page +1. [Livewire v4.3.5: What Changed and Why It Matters](#livewire-v435-what-changed-and-why-it-matters)
2. [The Problem: SFC Detection Failing on PHP Attribute Array Arguments](#the-problem-sfc-detection-failing-on-php-attribute-array-arguments)
3. [The Fix](#the-fix)
4. [Should You Upgrade?](#should-you-upgrade)
5. [Key Takeaways](#key-takeaways)
6. [Full Changelog](#full-changelog)

 Livewire v4.3.5: What Changed and Why It Matters
------------------------------------------------

Released on 3 August 2026, **Livewire v4.3.5** is a focused patch release for the v4.x branch. It ships exactly one fix, but it addresses a real-world parsing edge case that could silently break Single File Component (SFC) detection in certain PHP codebases.

### The Problem: SFC Detection Failing on PHP Attribute Array Arguments

Livewire v4 introduced support for Single File Components — a syntax that lets you co-locate your Blade template and component class in a single `.blade.php` file. Under the hood, Livewire parses the file to detect whether it is an SFC.

The bug fixed in this release occurred when a **PHP attribute on the component class contained an array argument**. For example:

```php
#[SomeAttribute(['key' => 'value'])]
class MyComponent extends Component
{
    // ...
}

```

The square brackets inside the attribute's argument list were being misinterpreted by the SFC detector, causing it to fail to recognise the file as a valid Single File Component. Depending on your setup, this could result in the template not being found or the component not rendering at all.

### The Fix

Contributor **@joshhanley** identified and resolved the issue in [pull request #10480](https://github.com/livewire/livewire/pull/10480). The fix corrects the SFC detection logic so that array arguments inside PHP attributes are properly handled during parsing, regardless of their complexity.

No public API changes were made. The fix is purely internal to the SFC detection mechanism.

### Should You Upgrade?

If your Livewire v4 components use **PHP attributes with array arguments** — for example, attributes from packages like Spatie's Laravel Data, custom validation attributes, or any attribute that accepts an array — you should upgrade to v4.3.5 immediately.

Even if you are not currently affected, upgrading is low-risk given the patch-level nature of this release.

Update via Composer:

```bash
composer update livewire/livewire

```

Verify the installed version:

```bash
composer show livewire/livewire | grep versions

```

### Key Takeaways

- **v4.3.5 contains a single bug fix** targeting SFC detection.
- The root cause was PHP attribute array arguments confusing the SFC parser.
- The fix is non-breaking; no code changes are required on your end.
- All Livewire v4 projects using PHP attributes with array syntax should upgrade.
- Credit goes to **@joshhanley** for the diagnosis and patch.

### Full Changelog

You can review the diff between v4.3.4 and v4.3.5 directly on GitHub to confirm the scope of changes before deploying to production.

---

*Source: [Livewire v4.3.5 release on GitHub](https://github.com/livewire/livewire/releases/tag/v4.3.5)*

- [Livewire](https://www.msaied.com/public/articles?search=Livewire)
- [Laravel](https://www.msaied.com/public/articles?search=Laravel)
- [PHP](https://www.msaied.com/public/articles?search=PHP)
- [Bug Fix](https://www.msaied.com/public/articles?search=Bug%20Fix)
- [Single File Components](https://www.msaied.com/public/articles?search=Single%20File%20Components)

 Frequently asked questions 
---------------------------

  What bug does Livewire v4.3.5 fix?It fixes a bug in the Single File Component (SFC) detection logic that caused parsing to fail when a PHP attribute on the component class contained array arguments, such as #\[SomeAttribute(\['key' =&gt; 'value'\])\].

   Do I need to change any code after upgrading to Livewire v4.3.5?No. The fix is purely internal to Livewire's SFC detection mechanism. Upgrading via Composer is all that is required — no changes to your component classes or templates are needed.

   How do I upgrade to Livewire v4.3.5?Run `composer update livewire/livewire` in your project root. You can confirm the installed version with `composer show livewire/livewire | grep versions`.

   ![Mohamed Said](https://cdn.msaied.com/01M22N44A70A5MC2S599JP0MPH.webp)About the author
----------------

[Mohamed Said](https://www.msaied.com/public#person)Senior Backend Engineer specializing in Laravel, scalable SaaS platforms, APIs, and cloud infrastructure. I build secure, high-performance web applications that help businesses grow.

[About](https://www.msaied.com/public#about) [GitHub ↗](https://github.com/EG-Mohamed) [LinkedIn ↗](https://www.linkedin.com/in/msaiedm/) [WhatsApp ↗](https://wa.me/201094619204) [Email Address ↗](mailto:hello@msaied.com) [My CV ↗](https://drive.google.com/file/u/0/d/1MF20IPRJyzfy32mhEutjL5EpSls0w2Q8/view)  

   [Previous articleLaravel Filament v3 Custom Actions: Bulk, Table, and Header Actions Done Right](https://www.msaied.com/public/articles/laravel-filament-v3-custom-actions-bulk-table-and-header-actions-done-right) [Next articleLaravel Doctor: Diagnose Your Laravel App With One Artisan Command](https://www.msaied.com/public/articles/laravel-doctor-diagnose-your-laravel-app-with-one-artisan-command)  

   On this page
-------------

1. [Livewire v4.3.5: What Changed and Why It Matters](#livewire-v435-what-changed-and-why-it-matters)
2. [The Problem: SFC Detection Failing on PHP Attribute Array Arguments](#the-problem-sfc-detection-failing-on-php-attribute-array-arguments)
3. [The Fix](#the-fix)
4. [Should You Upgrade?](#should-you-upgrade)
5. [Key Takeaways](#key-takeaways)
6. [Full Changelog](#full-changelog)

 ###  Have a technical challenge?

 Tell me what you’re building. I reply within two working days.

[Start a conversation](https://www.msaied.com/public#contact) 

   Related articles
-----------------

 [ ![](https://cdn.msaied.com/740/cce86edc21eddcbdd2f2454fadaf9c70.png)  · 3 min read### The Pipeline Pattern in Laravel: Custom Pipelines Beyond Middleware

5 Oct 2026 ](https://www.msaied.com/public/articles/the-pipeline-pattern-in-laravel-custom-pipelines-beyond-middleware-1) [ ![](https://cdn.msaied.com/739/2d6897fdcdcf090613f96f72a64b8a78.png)  · 4 min read### MySQL Full-Text Search in Laravel: Indexes, Relevance Scoring, and Boolean Mode

4 Oct 2026 ](https://www.msaied.com/public/articles/mysql-full-text-search-in-laravel-indexes-relevance-scoring-and-boolean-mode) [ ![](https://cdn.msaied.com/738/073696a3fefe18bec825beec5ac658f5.png)  · 4 min read### Laravel Queue Rate-Limited Middleware: Throttling Jobs Without Losing Work

4 Oct 2026 ](https://www.msaied.com/public/articles/laravel-queue-rate-limited-middleware-throttling-jobs-without-losing-work) 

  Have a technical challenge?
----------------------------

Tell me what you’re building. I reply within two working days.

 [Discuss your project ↗](https://www.msaied.com/public#contact) 

  © 2026 Mohamed Said · Built with Laravel, meant to last.Senior Backend Engineer specializing in Laravel, scalable SaaS platforms, APIs, and cloud infrastructure. I build secure, high-performance web applications that help businesses grow.

 - [Home](https://www.msaied.com/public)
- [Articles](https://www.msaied.com/public/articles)
- [Certificates](https://www.msaied.com/public/certificates)
- [GitHub](https://github.com/EG-Mohamed)
- [LinkedIn](https://www.linkedin.com/in/msaiedm/)
- [WhatsApp](https://wa.me/201094619204)
- [Email Address](mailto:hello@msaied.com)
- [My CV](https://drive.google.com/file/u/0/d/1MF20IPRJyzfy32mhEutjL5EpSls0w2Q8/view)
- [Sitemap](https://www.msaied.com/public/sitemap.xml)
