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/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 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) 

 [ ![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://msaied.com/articles/phpstorm-20262-released-laravel-tool-window-php-85-pipe-operator-and-ai-agents) [ ![Laravel Doctor: Diagnose Your Laravel App With One Artisan Command](https://cdn.msaied.com/504/d72224689abc7b396bce187535008272.png) Laravel Artisan Health Checks 

### Laravel Doctor: Diagnose Your Laravel App With One Artisan Command

Laravel Doctor is a first-party package announced at Laracon US 2026 that adds an `artisan doctor` command to...

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

 3 Aug 2026     4 min read  

  Read    

 ](https://msaied.com/articles/laravel-doctor-diagnose-your-laravel-app-with-one-artisan-command) [ ![Laravel Filament v3 Custom Actions: Bulk, Table, and Header Actions Done Right](https://cdn.msaied.com/502/ff034ec2bd69cdc8e56eced7a83882a3.png) filament laravel filament-actions 

### Laravel Filament v3 Custom Actions: Bulk, Table, and Header Actions Done Right

Go beyond the defaults: build type-safe bulk actions, inject services into header actions, and wire table row...

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

 3 Aug 2026     3 min read  

  Read    

 ](https://msaied.com/articles/laravel-filament-v3-custom-actions-bulk-table-and-header-actions-done-right) 

   [  ![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)
