PHPackages                             jbboehr/phpstan-array-merge - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jbboehr/phpstan-array-merge

ActivePhpstan-extension[Utility &amp; Helpers](/categories/utility)

jbboehr/phpstan-array-merge
===========================

v0.1.0(11mo ago)014AGPL-3.0+PHPPHP ^8.1CI passing

Since Jun 7Pushed 11mo agoCompare

[ Source](https://github.com/jbboehr/phpstan-array-merge)[ Packagist](https://packagist.org/packages/jbboehr/phpstan-array-merge)[ Docs](https://github.com/jbboehr/phpstan-array-merge)[ RSS](/packages/jbboehr-phpstan-array-merge/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (9)Versions (3)Used By (0)

phpstan-array-merge
===================

[](#phpstan-array-merge)

[![ci](https://github.com/jbboehr/phpstan-array-merge/actions/workflows/ci.yml/badge.svg)](https://github.com/jbboehr/phpstan-array-merge/actions/workflows/ci.yml)[![License: AGPL v3+](https://camo.githubusercontent.com/804e16c3c0324eb20ab6b4366bc15bd122b822188a5d6d0d057675a242577b73/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4147504c5f76332532622d626c75652e737667)](https://www.gnu.org/licenses/agpl-3.0)[![stability-experimental](https://camo.githubusercontent.com/0daa00e91aa931aeb2d321edc5a2ce6fe8fb4037fc35c084c4a01cde1621ac98/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73746162696c6974792d6578706572696d656e74616c2d6f72616e67652e737667)](https://camo.githubusercontent.com/0daa00e91aa931aeb2d321edc5a2ce6fe8fb4037fc35c084c4a01cde1621ac98/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73746162696c6974792d6578706572696d656e74616c2d6f72616e67652e737667)

Installation
------------

[](#installation)

To use this extension, require it in [Composer](https://getcomposer.org/):

```
composer require --dev jbboehr/phpstan-array-merge
```

If you also install [phpstan/extension-installer](https://github.com/phpstan/extension-installer) then you're all set!

### Manual installation

[](#manual-installation)

If you don't want to use `phpstan/extension-installer`, include `extension.neon` in your project's PHPStan config:

```
includes:
    - vendor/jbboehr/phpstan-array-merge/extension.neon
```

Usage
-----

[](#usage)

Have you ever wanted to have a function that performs an `array_merge()`-like operation but want that generic goodness PHPStan has to offer? **WAIT NO MORE!**

```
