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

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

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

  [ home ](https://msaied.com)    [ articles ](https://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 with PHP Attribute Array Arguments ](#the-problem-sfc-detection-failing-with-php-attribute-array-arguments)
3. [  The Fix ](#the-fix)
4. [  Should You Upgrade? ](#should-you-upgrade)
5. [  Key Takeaways ](#key-takeaways)

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

 [  Livewire ](https://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      2 min read    ![Mohamed Said](https://cdn.msaied.com/01M22N44A70A5MC2S599JP0MPH.webp)  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 with PHP Attribute Array Arguments  ](#the-problem-sfc-detection-failing-with-php-attribute-array-arguments)
3. [  03   The Fix  ](#the-fix)
4. [  04   Should You Upgrade?  ](#should-you-upgrade)
5. [  05   Key Takeaways  ](#key-takeaways)

 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 with PHP Attribute Array Arguments

Livewire v4 introduced support for Single File Components — a pattern where your Blade template lives inside the same PHP class file. The framework detects SFC syntax by parsing the PHP source of a component class.

The bug fixed in this release caused that detection logic to fail when a **PHP attribute** on the component class (or its methods/properties) included an **array as one of its arguments**. For example, a component decorated like this:

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

```

The square brackets inside the attribute argument list were being misread by the SFC detector, causing it to incorrectly conclude that the file was not an SFC — even when it was. The practical result: your inline Blade template would not be picked up, and the component would silently fall back to looking for an external view file.

### The Fix

Contributor [@joshhanley](https://github.com/joshhanley) resolved the issue in [PR #10480](https://github.com/livewire/livewire/pull/10480) by updating the SFC detection logic to correctly handle PHP attribute array arguments. The parser now distinguishes between the `[` / `]` delimiters used in PHP attribute syntax and those that signal the start of an SFC template block.

### Should You Upgrade?

If your Livewire v4 components use PHP attributes with array arguments **and** you rely on Single File Components, this patch is directly relevant to you. Even if you haven't hit the bug yet, upgrading is low-risk — this is a single, well-scoped fix with no breaking changes.

Upgrade via Composer:

```bash
composer update livewire/livewire

```

Verify the installed version:

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

```

### Key Takeaways

- **v4.3.5** contains one bug fix: corrected SFC detection when PHP attributes include array arguments.
- The issue caused Livewire to miss inline Blade templates in affected components.
- Fix contributed by [@joshhanley](https://github.com/joshhanley) via PR #10480.
- No breaking changes; safe to apply immediately.
- Upgrade with `composer update livewire/livewire`.

---

*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%2Fmsaied.com%2Farticles%2Flivewire-v435-released-fix-for-sfc-detection-with-php-attribute-array-arguments&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%2Fmsaied.com%2Farticles%2Flivewire-v435-released-fix-for-sfc-detection-with-php-attribute-array-arguments) 

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

  2 questions  

     Q01  What bug does Livewire v4.3.5 fix?        It fixes a bug where Single File Component (SFC) detection incorrectly failed when a PHP attribute on the component contained an array as one of its arguments, causing Livewire to miss the inline Blade template. 

      Q02  Do I need to change any code after upgrading to Livewire v4.3.5?        No. The fix is internal to Livewire's SFC parser. Simply run `composer update livewire/livewire` and your components with PHP attribute array arguments will be detected correctly without any code changes. 

  Continue reading

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

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

 [ ![Inertia DevTools Now Available for Firefox](https://cdn.msaied.com/674/445325ab535802b1b68d3adc3ada5cd0.png) Inertia.js DevTools Firefox 

### Inertia DevTools Now Available for Firefox

Inertia DevTools has landed on Firefox with full feature parity to the Chrome extension. Firefox users can now...

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

 17 Sep 2026     3 min read  

  Read    

 ](https://msaied.com/articles/inertia-devtools-now-available-for-firefox) [ ![Laravel Scalpel: Filesystem Intrusion Evidence Scanner for Laravel Apps](https://cdn.msaied.com/675/406b0f123858892b97052502c0020eac.png) security laravel php 

### Laravel Scalpel: Filesystem Intrusion Evidence Scanner for Laravel Apps

Laravel Scalpel is a post-compromise scanner that checks your deployed application's filesystem for rogue PHP...

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

 17 Sep 2026     4 min read  

  Read    

 ](https://msaied.com/articles/laravel-scalpel-filesystem-intrusion-evidence-scanner-for-laravel-apps) [ ![Mercure Broadcasting in Laravel 13.32](https://cdn.msaied.com/672/f3bf9ae116410789061208a12ebf2682.png) Laravel Broadcasting Mercure 

### Mercure Broadcasting in Laravel 13.32

Laravel 13.32 ships a native Mercure broadcast driver using SSE, new copyToDisk() and moveToDisk() filesystem...

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

 16 Sep 2026     3 min read  

  Read    

 ](https://msaied.com/articles/mercure-broadcasting-in-laravel-1332) 

   [  ![Mohamed Said](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png)   Mohamed Said Laravel Backend Engineer  ](https://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://msaied.com)
- [Projects](https://msaied.com/projects)
- [Articles](https://msaied.com/articles)
- [Certificates](https://msaied.com/certificates)
- [Contact](https://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)
