Livewire v4.3.5: SFC Detection Bug Fix | Mohamed Said        [  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png)   Mohamed Said Laravel Backend Engineer  ](https://www.msaied.com) [ Home ](https://www.msaied.com) [ Projects ](https://www.msaied.com/projects) [ Articles  ](https://www.msaied.com/articles) [ Certificates ](https://www.msaied.com/certificates) [ Contact ](https://www.msaied.com#contact-section) 

       [  ](https://github.com/EG-Mohamed)       

 [ Home ](https://www.msaied.com) [ Projects ](https://www.msaied.com/projects) [ Articles ](https://www.msaied.com/articles) [ Certificates ](https://www.msaied.com/certificates) [ Contact ](https://www.msaied.com#contact-section) 

  [ home ](https://www.msaied.com)    [ articles ](https://www.msaied.com/articles)    Livewire v4.3.5 Released: Fix for SFC Detection with PHP Attribute Array Arguments        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 Released: Fix for SFC Detection with PHP Attribute Array Arguments](https://cdn.msaied.com/508/9678ed8dbf5d7a6f4f19ca7694cf241b.png)

 [  Livewire ](https://www.msaied.com/articles?category=livewire)  #Livewire   #Laravel   #PHP   #Bug Fix   #Single File Components  

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

     3 Aug 2026      3 min read    ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MJ.jpg)  Mohamed Said  

       Table of contents

1. [  01   Livewire v4.3.5: What Changed and Why It Matters  ](#livewire-v435-what-changed-and-why-it-matters)
2. [  02   The Problem: SFC Detection Failing on PHP Attribute Array Arguments  ](#the-problem-sfc-detection-failing-on-php-attribute-array-arguments)
3. [  03   The Fix  ](#the-fix)
4. [  04   Should You Upgrade?  ](#should-you-upgrade)
5. [  05   Key Takeaways  ](#key-takeaways)
6. [  06   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)*

 Found this useful?

          [  ](https://twitter.com/intent/tweet?url=https%3A%2F%2Fwww.msaied.com%2Farticles%2Flivewire-v435-released-fix-for-sfc-detection-with-php-attribute-array-arguments-1&text=Livewire+v4.3.5+Released%3A+Fix+for+SFC+Detection+with+PHP+Attribute+Array+Arguments) [  ](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fwww.msaied.com%2Farticles%2Flivewire-v435-released-fix-for-sfc-detection-with-php-attribute-array-arguments-1) 

 Frequently Asked Questions 
----------------------------

  3 questions  

     Q01  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'])]. 

      Q02  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. 

      Q03  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`. 

  Continue reading

 More Articles 
---------------

 [ View all    ](https://www.msaied.com/articles) 

 [ ![PostgreSQL CTEs, Window Functions, and Lateral Joins in Laravel](https://cdn.msaied.com/506/7d5fcddaf6c26c87a749a20b8bdffbfa.png) laravel postgresql sql 

### PostgreSQL CTEs, Window Functions, and Lateral Joins in Laravel

Go beyond basic Eloquent queries. Learn how to leverage PostgreSQL CTEs, window functions, and LATERAL joins d...

  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MJ.jpg)  Mohamed Said 

 4 Aug 2026     1 min read  

  Read    

 ](https://www.msaied.com/articles/postgresql-ctes-window-functions-and-lateral-joins-in-laravel-4) [ ![PhpStorm 2026.2 Released: Laravel Tool Window, PHP 8.5 Pipe Operator, and AI Agents](https://cdn.msaied.com/509/27bfaf4aff7b913b8c6c3a37df9dc143.png) PhpStorm PHP Laravel 

### PhpStorm 2026.2 Released: Laravel Tool Window, PHP 8.5 Pipe Operator, and AI Agents

PhpStorm 2026.2 ships a dedicated Laravel tool window with Artisan, error logs, and Laravel Cloud tabs, plus P...

  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MJ.jpg)  Mohamed Said 

 3 Aug 2026     3 min read  

  Read    

 ](https://www.msaied.com/articles/phpstorm-20262-released-laravel-tool-window-php-85-pipe-operator-and-ai-agents-1) [ ![PhpStorm 2026.2 Released: Laravel Tool Window, PHP 8.5 Pipe Operator, and AI Agents](https://cdn.msaied.com/505/151a0bba66cc27064e090e69e55d7c92.png) PhpStorm JetBrains PHP 8.5 

### PhpStorm 2026.2 Released: Laravel Tool Window, PHP 8.5 Pipe Operator, and AI Agents

PhpStorm 2026.2 ships a dedicated Laravel tool window with Artisan, error logs, and Laravel Cloud tabs, plus P...

  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MJ.jpg)  Mohamed Said 

 3 Aug 2026     3 min read  

  Read    

 ](https://www.msaied.com/articles/phpstorm-20262-released-laravel-tool-window-php-85-pipe-operator-and-ai-agents) 

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

Explore

- [Home](https://www.msaied.com)
- [Projects](https://www.msaied.com/projects)
- [Articles](https://www.msaied.com/articles)
- [Certificates](https://www.msaied.com/certificates)
- [Contact](https://www.msaied.com#contact-section)

Connect

- [   hello@msaied.com ](mailto:hello@msaied.com)
- [   +20 109 461 9204 ](tel:+201094619204)

© 2026 Mohamed Said. All rights reserved.

 [  ](https://github.com/EG-Mohamed) [  ](https://www.linkedin.com/in/msaiedm/) [  ](https://wa.me/201094619204) [  ](mailto:hello@msaied.com) [  ](https://drive.google.com/file/u/0/d/1MF20IPRJyzfy32mhEutjL5EpSls0w2Q8/view)
