---
title: "lint/faker-1/no-faker-property-access"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

<RuleId id="lint/faker-1/no-faker-property-access" />

Not in any preset. In Rector's [`rector-laravel/faker-10`](/docs/rules/sets/rector-laravel/faker-10) set. Safe fix.

## What it does

Replace deprecated faker property fetch with method call

## Configuration

```toml title="pun.toml"
[lint.rules]
"faker-1/no-faker-property-access" = "error"
```

To skip it in some files or lines, add an [override](/docs/configuration/pun-toml#lint) or an [ignore comment](/docs/configuration/ignore-comments).

## Replaces

- [`ReplaceFakerPropertyFetchWithMethodCall`](https://getrector.com/rule-detail/replace-faker-property-fetch-with-method-call-rector) (rector-laravel)

[More lint/faker-1 rules](/docs/rules/lint/faker-1) · [Edit this page](https://github.com/shipfastlabs/pun/edit/main/crates/pun-config/rules/mapping.toml)
